]> Pileus Git - ~andy/aweather-web/blob - html.ct
Add pileus.org link
[~andy/aweather-web] / html.ct
1 <% #include "html.h" %>
2
3 <% /* Global functions */ %>
4 <% void print_header(void) { %>
5 Content-Type: text/html; charset=UTF-8
6
7 <% } %>
8
9 <% void print_nav(const page_t *page, const page_t *cur) { %>
10         <% const char *class = page == cur ? " class=\"cur\"" : ""; %>
11         <a href="<%= page->link %>"<%= class %>><%= page->name %></a>
12 <% } %>
13
14 <% void print_screen(char *name) { %>
15         <a href="screens/<%= name %>.png">
16                 <img src="screens/<%= name %>_s.jpg" alt="<%= name %>" class="screen" />
17         </a>
18 <% } %>
19
20 <% void print_page(const page_t *page) { %>
21 <?xml version="1.0" encoding="UTF-8"?>
22 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
23 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
24         <head>
25                 <title>AWeather<% if (page->name) printf(" - %s", page->name); %></title>
26                 <link rel="shortcut icon" href="images/aweather.ico" />
27                 <link href="data/global.css" rel="stylesheet" type="text/css" />
28                 <script type="text/javascript" src="data/global.js"></script>
29                 <meta http-equiv="X-UA-Compatible" content="IE=9" />
30                 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
31                 <meta name="keywords" content="weather, radar, nexrad, level-ii, virtual globe, grits, rsl" />
32                 <% if (page->desc) { %>
33                 <meta name="description" content="<%= page->desc %>" />
34                 <% } %>
35                 <meta name="google-site-verification" content="-SZkTpNRWHrpESTGNZ8Pshnz4zKbwfKv54NoavUKK_Y" />
36                 <meta name="msvalidate.01" content="CB7C94BBCD12714FDFF3D22415B1888A" />
37         </head>
38         <body>
39                 <div class="top">
40                         <a href="."><img class="logo" src="images/logo.png" alt="AWeather" /></a>
41                         <h1 class="title"><a href=".">AWeather</a></h1>
42                         <h1 class="subtitle"><a href="..">pileus.org</a></h1>
43                         <h2 class="nav">
44                                 <% for (int i = 0; header[i].link; i++) print_nav(&header[i], page); %>
45                                 <span class="sep"></span>
46                                 <% for (int i = 0; other[i].link;  i++) print_nav(&other[i],  page); %>
47                         </h2>
48                 </div>
49                 <div class="content">
50                         <!--
51                                 <p class="msg">This site is currently under construction</p>
52                                 <p class="msg" style="font-size:8pt; font-weight:normal;">
53                                   If I had an animated GIF of a guy with a shovel, I would put it here</p>
54                         -->
55                         <% page->print(); %>
56                         <div style="clear:both;"></div>
57                 </div>
58                 <p class="footer">
59                         Copyright © 2011-2012 Andy Spencer
60                         <% for (int i = 0; footer[i].link; i++) { %>
61                                 | <% print_nav(&footer[i], page); %>
62                         <% } %>
63                 </p>
64         </body>
65 </html>
66 <% } %>
67
68 <% /* Normal Pages */ %>
69 <% void print_about(void) { %>
70         <p class="intro">
71                 AWeather is a free/open source application which has been
72                 designed to integrate and visualize high-quality meteorological
73                 data using an interactive Virtual Globe interface suitable for
74                 a wide range of users including weather enthusiasts, academics,
75                 and professionals.
76
77                 It is designed to provide more information than is typically
78                 available from weather widgets and simple desktop applications.
79                 At the same time, it strives to be simpler and easier to use
80                 than existing meteorological software packages such as GEMPAK
81                 and IDV.
82
83                 Currently AWeather only displays data provided by the United
84                 States National Weather Service.
85         </p>
86         <hr />
87
88         <h2>Features</h2>
89         <div class="col">
90                 <h3>Working</h3>
91                 <ul>
92                         <li>High quality data sources<ul>
93                                 <li>Level-II archives</li>
94                                 <li>Conus NEXRAD imagery</li>
95                                 <li>Volume display of dBZ iso surfaces</li>
96                                 <li>Storm based and county based<br/>
97                                     warning/watch/advisory displays</li>
98                         </ul></li>
99                         <li>Virtual Globe base rendering<ul>
100                                 <li>Including terrain, satellite, and map imagery</li>
101                         </ul></li>
102                         <li>GPS tracking using GPSd (Linux only)</li>
103                         <li>Real-time and offline mode</li>
104                         <li>Auto-updating</li>
105                         <li>Fullscreen mode</li>
106                 </ul>
107         </div>
108         <div class="col">
109                 <h3>Planned</h3>
110                 <ul>
111                         <li>Additional data sources<ul>
112                                 <li>Surface data (temp., humidity, etc)</li>
113                         </ul></li>
114                         <li>Derived NEXRAD data<ul>
115                                 <li>Storm relative motion</li>
116                                 <li>Compost reflective</li>
117                                 <li>Echo tops</li>
118                         </ul></li>
119                         <li>Vertical cross sections</li>
120                         <li>Spotter network intergration</li>
121                         <li>Animation</li>
122                 </ul>
123         </div>
124
125         <div style="clear:both;"></div>
126         <h2>Licencing</h2>
127         <p>AWeather is free software licensed under the terms of the
128            <a href="http://www.gnu.org/licenses/gpl.html">GNU GPL</a>.
129            As such, it can be used by any individuals or organizations
130            without any license fees or royalties.</p>
131 <% } %>
132
133 <% void print_news(void) { %>
134         <!-- It's not really spring anymore :/ -->
135         <!-- <p class="quote">Now that it's spring again, progress on AWeather is continuing.</p> -->
136         <dl class="news">
137                 <dt>2012-12-11</dt>
138                 <dd>
139                         New Website!<ul>
140                                 <li>The Rose-Hulman Linux Users Group website
141                                     has been unavailable for some time so we have
142                                     moved on to a new and hopefully more stable server.
143                                     A mirror of the old RHLUG website is available at
144                                     <a href="http://rhlug.pileus.org/wiki/Main_Page">http://rhlug.pileus.org/</a></li>
145                                 <li>Due to the move, some of the site
146                                     infrastructure such as bug tracer and the
147                                     development wiki are unavailable
148                                 <li>These issues should be resolved shortly</li>
149                         </ul>
150                         New Mailing list!<ul>
151                                 <li>There is now an official mailing list for AWeather and other pileus.org projects as well:<br />
152                                     <a href="<%= MAIL_LIST %>"><%= MAIL_LIST %></a></li>
153                                 <li>An astoundingly empty archive is also available:<br />
154                                     <a href="<%= MAIL_ARCH %>"><%= MAIL_ARCH %></a></li>
155                         </ul>
156                 </dd>
157
158                 <dt>2012-02-16</dt>
159                 <dd>
160                         AWeather 0.7 released: <ul>
161                                 <li>Added a GPS plugin using
162                                     <a href="http://www.catb.org/gpsd/">GPSd</a><ul>
163                                     <li>Written by Adam Boggs and based on the
164                                         <a href="http://www.aircrafter.org/boggs/stormchasing/BrainStorm/">BrainStorm</a>
165                                         storm chasing tool</li>
166                                     <li>Linux only, or maybe Mac or Windows
167                                         if you're very very brave</li>
168                                 </ul></li>
169                                 <li>Detailed (but opaque) maps in the map plugin</li>
170                                 <li>Automaticlaly save window size and position</li>
171                                 <li>Add toggle buttons for county-based and storm-based alerts</li>
172                                 <li>Miscellaneous bug fixes, including some long-standing rendering artifacts</li>
173                         </ul>
174                 </dd>
175
176                 <dt>2012-01-10</dt>
177                 <dd>
178                         AWeather 0.6.3 released: <ul>
179                                 <li>Added support for Mac OS X</li>
180                                 <li>Added an much improved <a href="manual">User Guide</a>,
181                                     written by Jason Holmes</li>
182                                 <li>Miscellaneous bug fixes</li>
183                         </ul>
184                         <span style="font-size: smaller; font-style: italic;">
185                                 (p.s. AWeather 0.6.2 doesn't exist, you never
186                                 heard of it, and neither have I)</span>
187                 </dd>
188
189                 <dt>2011-11-25</dt>
190                 <dd>
191                         AWeather 0.6.1 released: <ul>
192                                 <li>Added a Radar menu to quickly jump to a NEXRAD/WSR-88D site</li>
193                                 <li>Fixed a bunch of 64-bit bugs</li>
194                         </ul>
195                 </dd>
196
197                 <dt>2011-11-03</dt>
198                 <dd>
199                         AWeather 0.6 released: <ul>
200                                 <li>Added "Alerts" plugin using the
201                                     <a href="http://alerts.weather.gov/">NWS CAP</a> feed</li>
202                                 <li>Updated GTK+ libraries for Windows</li>
203                                 <li>Behind the scenes, mouse support in Grits
204                                     has been much improved</li>
205                         </ul>
206                         This release was a little bit faster than previous releases.
207                         Hopefully additional improvements to the alerts plugin
208                         can be made incrementally during the 0.x.x releases.
209                 </dd>
210
211                 <dt>2011-09-12</dt>
212                 <dd>
213                         AWeather 0.5.2 released: <ul>
214                                 <li>Added new desktop icons</li>
215                                 <li>Miscellaneous bug fixes</li>
216                         </ul>
217                         Improved organization of the <a href="<%= WIKI_INDEX %>">Wiki</a>
218                 </dd>
219
220                 <dt>2011-08-25</dt>
221                 <dd>
222                         AWeather 0.5.1 released: <ul>
223                                 <li>Bugfix release</li>
224                                 <li>Updated sat/map/elev to provide better data</li>
225                                 <li>First release with <a href="<%= DEBIAN_HOME %>">Debian</a>,
226                                                    and <a href="<%= UBUNTU_HOME %>">Ubuntu</a> packages</li>
227                         </ul>
228                 </dd>
229         </dl>
230         <p class="note">See also: <a href="oldnews">Older news</a>,
231                                   <a href="<%= GW_AWEATHER %>">gitweb</a></p>
232 <% } %>
233
234 <% void print_oldnews(void) { %>
235         &lt; <a href="news">News</a>
236         <dl class="news">
237                 <dt>2011-06-19</dt>
238                 <dd>
239                         AWeather 0.5 released: <ul>
240                                 <li>Support for volume rendering (isosurfaces)</li>
241                                 <li>Automatic updating</li>
242                                 <li>Fullscreen mode</li>
243                                 <li>Dropped GtkGLExt</li>
244                         </ul>
245                         Forked RSL:<ul>
246                                 <li>Added additional radars</li>
247                                 <li>Fixed lots of bugs</li>
248                                 <li>General code cleanup</li>
249                                 <li>Available from <a href="files/">files</a> directory
250                                     and <a href="<%= GW_RSL %>">git</a></li>
251                         </ul>
252                         <b>Update:</b> AWeather 0.5 is also compatible with the
253                         newly released RSL v1.41
254                 </dd>
255
256                 <dt>2011-06-13</dt>
257                 <dd>Started work on this new website. Lots of progress in AWeather as well:<ul>
258                         <li>Merged support for isosurfaces to the main branch (Finally!)</li>
259                         <li>Added an option to automatically refresh after a timeout</li>
260                         <li>New fullscreen mode</li>
261                 </ul></dd>
262
263                 <dt>2010-05-17</dt>
264                 <dd>AWeather 0.4.1:<ul>
265                         <li>Win32 fixes and improved debug support</li>
266                         <li>Fix bug with daylight savings time</li>
267                         <li>Function to clear old cache entries</li>
268                 </ul></dd>
269
270                 <dt>2010-05-14</dt>
271                 <dd>AWeather 0.4:<ul>
272                         <li>Conus radar images</li>
273                         <li>Multiple radars support</li>
274                         <li>Gentoo, Ubuntu, MS Windows and source packages are available</li>
275                 </ul></dd>
276
277                 <dt>2009-11-09</dt>
278                 <dd>AWeather 0.3.0 released, based on libgis but still rather
279                     buggy.</dd>
280
281                 <dt>2009-10-24</dt>
282                 <dd>AWeather 0.2.3 (maintenance release).<br/>
283                     Added a Application menu entry and a few build/runtime fixes.</dd>
284
285                 <dt>2009-09-02</dt>
286                 <dd>The source repository has been migrated to Git. A lot of
287                     progress is being made on libgis, which is now able to display
288                     a virtual globe using data from NASA servers.</dd>
289         </dl>
290 <% } %>
291
292 <% void print_manual(void) { %>
293         <div class="asciidoc">
294                 <% print_file("manual.inc"); %>
295         </div>
296 <% } %>
297
298 <% void print_screenshots(void) { %>
299         <p>
300                 AWeather provides a consistent user interface that allows the
301                 user to zoom in from a high level view of the entire Earth down
302                 to regional and mesoscale views.
303         </p>
304
305         <ul class="gallery">
306                 <li>
307                         <% print_screen("synop"); %>
308                         High level view using Grits
309                 </li>
310                 <li>
311                         <% print_screen("region"); %>
312                         Regional view over the midwest
313                 </li>
314                 <li>
315                         <% print_screen("meso"); %>
316                         Mesoscale view of a tornadic system
317                 </li>
318                 <li>
319                         <% print_screen("iso"); %>
320                         Close up showing a 52.5 dBZ isosurface
321                 </li>
322                 <li>
323                         <% print_screen("alert"); %>
324                         Current severe weather alerts for the CONUS
325                 </li>
326         </ul>
327 <% } %>
328
329 <% void print_download(void) { %>
330         <h2>Stable releases</h2>
331         <p class="note">
332                 While AWeather won't be considered stable until version 1.0,
333                 these are as close to stable as you can get until then
334         </p>
335         <ul>
336                 <li class="linux"><dl class="inline">
337                         <dt>Source code</dt>
338                         <dd>
339                                 <a href="files/aweather-<%= VERSION %>.tar.gz">aweather-<%= VERSION %>.tar.gz</a>,
340                                 <a href="../grits/files/grits-<%= VERSION_GRITS %>.tar.gz">grits-<%= VERSION_GRITS %>.tar.gz</a>,
341                                 <a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a>
342                         </dd>
343
344                         <dt class="shown">Binaries</dt>
345                         <dd class="shown"><a href="javascript:show()">Show..</a></dd>
346
347                         <dt class="hidden">Gentoo</dt>
348                         <dd class="hidden"><span class="code">emerge sci-geosciences/aweather</span>
349                                 from the <a href="<%= GENTOO_HOME %>">Sunrise</a> overlay</dd>
350
351                         <dt class="hidden">Debian</dt>
352                         <dd class="hidden"><span class="code">apt-get install aweather</span>
353                                 from <a href="<%= DEBIAN_HOME %>">Debian</a> sid</dd>
354
355                         <dt class="hidden">Ubuntu</dt>
356                         <dd class="hidden"><span class="code">apt-get install aweather</span>
357                                 from <a href="<%= UBUNTU_HOME %>">Ubuntu</a> Oneiric,
358                                 or the <a href="<%= UBUNTU_PPA %>">AWeather PPA</a></dd>
359
360                         <dt class="hidden">Slackware</dt>
361                         <dd class="hidden">Included in <a href="<%= SLACKY_HOME %>">Slacky</a> 13.37</dd>
362
363                         <dt class="hidden">Arch</dt>
364                         <dd class="hidden">Available from the <a href="<%= ARCH_HOME %>">Arch User Repository</a></dd>
365
366                         <dt class="hidden">Mandriva</dt>
367                         <dd class="hidden">Available from Mandriva 2011</dd>
368                 </dl></li>
369                 <li class="windows"><dl class="inline">
370                         <dt>Windows</dt>
371                         <dd><a href="files/aweather-<%= VERSION_WIN %>-gtk.exe">aweather-<%= VERSION_WIN %>-gtk.exe</a>
372                                 (Use this unless you know what you're doing)</dd>
373
374                         <dt>Without GTK</dt>
375                         <dd><a href="files/aweather-<%= VERSION_WIN %>.exe">aweather-<%= VERSION_WIN %>.exe</a></dd>
376                 </dl></li>
377                 <li class="macos" style="padding-top: .8em; padding-bottom: .8em"><dl class="inline">
378                         <dt>Mac OS X</dt>
379                         <dd><a href="files/aweather-<%= VERSION_MAC %>.dmg">aweather-<%= VERSION_MAC %>.dmg</a>
380                                 (Requires 10.6 or newer)</dd>
381                 </dl></li>
382         </ul>
383
384         <h2>Unstable releases</h2>
385         <p class="note">Pre-releases, betas, and other hazardous software</p>
386         <div style="margin-left: 30px;">
387                 <p>Check out the <a href="files">files</a> directory for any potential updates</p>
388                 <p>Pre-releases are labeled with a -p0 and are mainly built for testing the Windows and Mac packages</p>
389         </div>
390
391         <h2>Development code</h2>
392         <p class="note">
393                 Development code is available from Git
394                 (and gitweb:
395                  <a href="<%= GW_AWEATHER %>">AWeather</a>,
396                  <a href="<%= GW_GRITS    %>">Grits</a>,
397                  <a href="<%= GW_RSL      %>">RSL</a>)
398         </p>
399         <div style="margin-left: 30px;">
400                 <div class="code">git clone <%= GIT_AWEATHER %></div>
401                 <div class="code">git clone <%= GIT_GRITS    %></div>
402                 <div class="code">git clone <%= GIT_RSL      %></div>
403         </div>
404         <p class="note left" style="margin-top: 1.5em;">
405                 Repositories for packaging and this website
406                 (and gitweb:
407                  <a href="<%= GW_PKG %>">Packaging</a>,
408                  <a href="<%= GW_WEB %>">Website</a>)
409         </p>
410         <div style="margin-left: 30px;">
411                 <div class="code">git clone <%= GIT_PKG %></div>
412                 <div class="code">git clone <%= GIT_WEB %></div>
413         </div>
414 <% } %>
415
416 <% void print_development(void) { %>
417         <!-- Open source mumbo jumbo.. -->
418
419         <p class="note" style="clear: both;">
420                 The AWeather <a href="<%= WIKI_INDEX %>">development wiki</a>
421                 is the main resource for development material.
422         </p>
423
424         <h2>Bug report and feature requests</h2>
425         <div style="margin-left: 30px;">
426                 <p><a href="<%= BUG_LIST %>">List of current issues</a></p>
427                 <p><a href="<%= BUG_NEW  %>">Add a new issue</a></p>
428         </div>
429
430         <h2>How to contribute?</h2>
431         <ul>
432                 <li>Locate or host Meteorological and Geospatial data feeds</li>
433                 <li>Maintain a Mac OS, Windows, or Linux installer</li>
434                 <li>Test AWeather and submit bug reports</li>
435                 <li>Make better logo!</li>
436         </ul>
437
438         <h2>Architecture Overview</h2>
439         <ul>
440                 <li>Built on top of GObject and GTK+</li>
441                 <li>Uses the <a href="grits">Grits</a> "Virtual Globe" library<ul>
442                         <li>Handles most of the graphics work using OpenGL for rendering</li>
443                         <li>Provides some other generic functionality, such as data access</li>
444                         <li>Also provides the plugins API used by AWeather</li>
445                 </ul></li>
446                 <li>AWeather itself is a front-end for Grits along with a
447                     bundle of weather related plugins</li>
448         </ul>
449
450         <h2>Building AWeather</h2>
451         <p class="note">See the <a href="<%= WIKI_INSTALL %>">install</a>
452                 wiki page for more details</p>
453         <ul>
454                 <li>AWeather has direct dependencies on Grits, RSL, among other things</li>
455                 <li>Currently building and running AWeather requires the
456                     exact same version of Grits to be installed<br />
457                     (This may change in the near future as the software stabilizes)</li>
458                 <li>The <a href="download">Downloads</a> page has information
459                     on accessing the AWeather source code repositories</li>
460         </ul>
461 <% } %>
462
463 <% void print_grits(void) { %>
464         <p>
465                 Grits is a Virtual Globe library developed along side AWeather,
466                 but desigend to be usable by other program as well.
467
468                 It is differentiated from other Virtual Globes such as Google
469                 Earth, NASA World Wind, and KDE Marble in that it is developed
470                 primairily as a library that is used by other programs, such as
471                 AWeather, rather than providing it's own user interface.
472         </p>
473
474         <ul class="gallery">
475                 <li>
476                         <% print_screen("grits"); %>
477                         Grits without any plugins
478
479                 </li>
480                 <li>
481                         <% print_screen("plugins"); %>
482                         Satellite and Environment plugins
483                 </li>
484                 <li>
485                         <% print_screen("terrain"); %>
486                         Elevation plugin showing a mountain
487                 </li>
488         </ul>
489 <% } %>
490
491 <% void print_rsl(void) { %>
492         <h2>Radar Software Library</h2>
493         AWeather has at times needed a custom version of the
494         <a href="<%= RSL_WEB %>">TRMM Radar Software Library</a>
495         for accessing Level-II radar files. However, most of the changes have
496         since been incorporated into RSL Version 1.41, which can also be used
497         with AWeather. Some remaining changes exist though and are mostly
498         related to code organization and compiler warnings.
499
500         <h2>Download</h2>
501         <div class="col">
502                 <h3>NASA/TRMM version</h3>
503                 <ul>
504                         <li><a href="<%= RSL_WEB %>">TRMM RSL Website</a></li>
505                         <li><a href="<%= RSL_FTP RSL_TAR %>"><%= RSL_TAR %></a></li>
506                 </ul>
507         </div>
508         <div class="col">
509                 <h3>AWeather's version</h3>
510                 <ul>
511                         <li><a href="files/rsl-1.40.tar.gz">rsl-1.40.tar.gz</a></li>
512                         <li><a href="<%= GW_RSL %>">Gitweb</a></li>
513                         <li><div class="code">git clone <%= GIT_RSL %></div></li>
514                 </ul>
515         </div>
516 <% } %>
517
518 <% /* Footer Pages */ %>
519 <% void print_contact(void) { %>
520         <h1>Contact</h1>
521         <p class="note">Questions? Comments? Trouble compiling AWeather?</p>
522         <dl class="inline small">
523                 <dt>Bugs</dt> <dd><a href="<%= BUG_LIST %>">Issue Tracker</a> (sign in to add a new issue)</dd>
524                 <dt>Email</dt><dd><a href="mailto:andy753421@gmail.com">Andy Spencer</a></dd>
525                 <dt>IRC</dt>  <dd>#rhlug@irc.freenode.net</dd>
526         </dl>
527 <% } %>
528
529 <% /* Special Pages */ %>
530 <% void print_index(void) { %>
531         <p class="intro">
532                 AWeather is a free real-time weather data viewer designed for weather enthusiasts.
533                 AWeather is not a weather widget/dockapp that displays a pre-computed forecast.
534                 It is designed to be an easy to use program that integrates a
535                 variety of meteorological data in simple unified interface;
536                 see the <a href="about">about</a> page for more details.
537         </p>
538         <hr />
539         <div style="float: left">
540                 <h2 style="margin-top: 0;">Features:</h2>
541                 <ul style="float: left;">
542                         <li>Detailed Level-II NEXRAD radar<ul>
543                                 <li>3D volume rendering</li>
544                                 <li>Dual-pole support</li>
545                         </ul></li>
546                         <li>Online and offline modes<ul>
547                                 <li>Data caching</li>
548                                 <li>Automatic updating</li>
549                         </ul></li>
550                         <li>Warning/Watch/Advisory display</li>
551                         <li>GPS tracking and logging</li>
552                         <li>Surface and map overlays</li>
553                         <li>Terrain rendering</li>
554                 </ul>
555         </div>
556         <div style="float: left; margin-left: 20px;">
557                 <% print_screen("stormbased"); %>
558                 <div style="text-align: center; margin-right: 25px;">
559                         AWeather showing storm based warnings<br />
560                         on top of Level-II radar imagery
561                 </div>
562         </div>
563         <a href="download" class="download" style="float: right;">
564                 <span>AWeather</span>
565                 <span>Download Version <%= VERSION %></span>
566                 <img src="images/dl-arrow.png" alt="Download" />
567         </a>
568         <p style="text-align: center;"><%= VERSION_DESC %></p>
569 <% } %>
570
571 <% void print_notfound(void) { %>
572         <h1>Error 404 - Page Not found!</h1>
573         <br />
574         <p>This page does not exist!
575         <p>If Andy screwed up, feel free to <a href="contact">tell him</a>,
576            otherwise, go away</p>
577 <% } %>
578
579 <% void print_sitemap(const page_t **pages) { %>
580 <?xml version='1.0' encoding='UTF-8'?>
581 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
582         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
583         xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
584                             http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
585         <% for (int i = 0; pages[i];         i++) { %>
586         <% for (int j = 0; pages[i][j].link; j++) { %>
587         <% if  (pages[i][j].prio >= 0) { %>
588         <url>
589                 <loc><%% "%s%s", PREFIX, pages[i][j].link %></loc>
590                 <priority><%% "%3.1f", pages[i][j].prio %></priority>
591         </url>
592         <% } } } %>
593 </urlset>
594 <% } %>