repo.or.cz
/
vox.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
removed slot operator (no longer needed) & class proto bug fix to use NewSlot by...
[vox.git]
/
examples
/
compiletpl.vx
blob
811b5c8d03807c1913aa0b31b2ff9429e7389c0d
1
2
local template = import("core/template")
3
if(system.argv.len() > 1)
4
{
5
println(template.compile_string(io.readfile(system.argv[1])))
6
}
7
else
8
{
9
println("Usage: %s <template-path>".fmt(system.argv[0]))
10
}