Hello,
I'm creating a layout using orbit.htmlify, and I need to load some part of it from database. But I dont know how to convert the string from database to a table. I've tryed loadstring() but didn't work.

If a declare that my_body = h2"Hello World!" it will output correctly Hello World!, but if the value comes from a string of database, like my_body = params.section.body, where params.section.body value is h2"Hello World!" it prints h2"Hello World!".

I've tryed
my_body=table.concat(loadstring(params.section.body)())
but I got an error that says that h2 is nill

[string "h2"Hello World!""]:1: attempt to call global 'h2' (a nil value)

Does anyone has an idea of what I should do?


ps: Sorry for my bad English :p

--

Itamar Eduardo Gonçalves de Oliveira


_______________________________________________
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