Lua template processor question
Posted
by PeterMmm
on Stack Overflow
See other posts from Stack Overflow
or by PeterMmm
Published on 2010-05-13T10:20:34Z
Indexed on
2010/05/13
10:24 UTC
Read the original article
Hit count: 258
I'm going to use that template engine LTP . There is not so much doc available.
Now i'm stuck how to pass an environment into the render engine. I have basically this:
local ltp = require("ltp.template")
ltp.render(io.stdout, 1, "index.dhtm", false, {}, "<?lua", "?>", { total="2400" })
What data structure should be the last parameter (env_code), a string, a table with key=val ?
© Stack Overflow or respective owner