5 my $a = Artemus5
->new();
7 #my $src = join('', <>);
9 #print $a->process($src);
11 # <a href = http://host?t=<{$0}>;offset=0><{or $1 "Main index"}></a>
14 [ '"', '<a href = http://host/?t=' ],
19 [ '"', 'Main index' ],
24 $a->{op
}->{url
} = $url;
27 # <span class = 'prev'><{if $2
29 # {url "INDEX" "topic" $0 "offset" {sub $2 $1}}
33 # <html>\n<{url 'LOGIN' 'Login page'}>\n<{url 'INDEX'}></html>
37 [ '()', [ 'url', [ '"', 'LOGIN'], ['"', 'Login page'] ] ],
39 [ '()', [ 'url', [ '"', 'INDEX'] ] ],
43 print $a->exec($p), "\n";