On Mon, May 24, 2010 at 2:55 PM, Itamar Eduardo <
itamaredua...@novanis.com.br> wrote:
>
>   Thanks man, I did like this:
>
> local my_body = [[function dobody() return ]]..params.section.body..[[ end
> orbit.htmlify(dobody)]]
> loadstring(my_body)()
> my_body = dobody()
>
> is this the best way to do it?
>

Not necessarily better, but a different way to do that is:

local my_body = assert(loadstring("return " .. params.section.body))
orbit.htmlify(my_body)
resulting_html = my_body()
_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to