version 0.7.2

This commit is contained in:
Andreas Rumpf 2008-12-12 14:02:27 +01:00
commit ddaedab835
158 changed files with 34811 additions and 10001 deletions

27
tests/ttempl.nim Normal file
View file

@ -0,0 +1,27 @@
# Test the new template file mechanism
import
os, times
include "sunset.tmpl"
const
tabs = [["home", "index"],
["news", "news"],
["documentation", "documentation"],
["download", "download"],
["FAQ", "question"],
["links", "links"]]
var i = 0
for item in items(tabs):
var content = $i
var file: TFile
if openFile(file, changeFileExt(item[1], "html"), fmWrite):
write(file, sunsetTemplate(current=item[1], ticker="", content=content,
tabs=tabs))
closeFile(file)
else:
write(stdout, "cannot open file for writing")
inc(i)