MikMod for Java - jmikmod / site / wml / template.wml

# #use wml::des::navbar

use MyNavData;
use HTML::Widgets::NavMenu::HeaderRole;

my $filename = "$(FILENAME)";
$filename =~ s!index\.html$!!;
$filename = "/$filename";

my $nav_bar = HTML::Widgets::NavMenu::HeaderRole->new(
    'path_info' => $filename,
    'current_host' => "berlios",
    'ul_classes' => [ "navbarmain", ("navbarnested") x 10 ],

my $rendered_results = $nav_bar->render();

use vars qw($nav_links);

$nav_links = $rendered_results->{nav_links};

use vars qw($nav_html);

$nav_html = $rendered_results->{html};


<define-tag email:link>
<a href="mailto:%0">%0</a>

# The Definition of the page itself
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="" xml:lang="en-US" lang="en-US">
<link rel="stylesheet" href="$(ROOT)/style.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="Shlomi Fish" />
use CGI qw();

my @keys = (sort { $a cmp $b } keys(%$nav_links));
foreach my $key (@keys)
    my $url = $nav_links->{$key};
    print "<link rel=\"$key\" href=\"" . CGI::escapeHTML($url) . "\" />\n"

<define-tag rellink whitespace="delete">
<preserve url />
<set-var %attributes />
$(ROOT)/<get-var url />
<restore url />

<define-tag site:link whitespace="delete">
<preserve url />
<set-var %attributes /><get-var url />
<restore url />

<define-tag wiki:link whitespace="delete">
<preserve url />
<set-var %attributes />
<ifeq "<get-var url />" "" 
    "<set-var url="/Main/HomePage" />" 
    "<set-var url="/<get-var url />" />" 
<site:link url="Wiki/pmwiki/pmwiki.php" /><get-var url />
<restore url />

<define-tag mailing:list:link whitespace="delete">

<define-tag web:forum:link whitespace="delete">

<define-tag nothing></define-tag>

<div class="navbar">
<:{ print join("\n", @$nav_html); }:>
<br /><br /><br /><br />
<define-tag validhtml>
<a href=";id=0&amp;t=70"><img 
   style="margin-top:1em; border:0;" alt="Get Firefox!" 
   title="Get Firefox! A safer, faster, better web-browser." 
   src="$(ROOT)/images/get-firefox.gif" /></a>
<a href=""><img 
    style="border:0" src="$(ROOT)/images/valid-xhtml10.png" 
         alt="Valid XHTML 1.0!"
 <a href="$(FILENAME)"><img style="border:0"
       alt="Valid CSS!" /></a>

<validhtml />

<div class="main">

<div class="footer">
<hr class="bottom" />
<b>Webmaster:</b> <a href="">Shlomi Fish</a>. Email: 
<a href=""></a>.

<define-tag subject>

#   per default we are in body