Files
Nim/examples/filterex.nim
Adam Strzelecki 700b63ad89 Use new #? filter prefix in various places
This silences deprecation warnings and prevent collision with UNIX shebang.
2015-09-30 16:12:31 +02:00

24 lines
496 B
Nim

#? stdtmpl | standard
#proc generateHTMLPage(title, currentTab, content: string,
# tabs: openArray[string]): string =
# result = ""
<head><title>$title</title></head>
<body>
<div id="menu">
<ul>
#for tab in items(tabs):
#if currentTab == tab:
<li><a id="selected"
#else:
<li><a
#end if
href="${tab}.html" title = "$title - $tab">$tab</a></li>
#end for
</ul>
</div>
<div id="content">
$content
A dollar: $$.
</div>
</body>