html forms using Lua

38 views
Skip to first unread message

Samarjit Uppal

unread,
Apr 20, 2015, 4:09:14 AM4/20/15
to openre...@googlegroups.com

Hi,

Openresty is fantastic for consuming and returning simple json/html. But writing and outputting complex html forms using the ngx.say() directive is a bit tedious. Anyone knows of an easier solution if we want to use openresty to build and consume complex html forms.

Thanks,
S

Bogdan Irimia

unread,
Apr 20, 2015, 4:12:43 AM4/20/15
to openre...@googlegroups.com
Hello

Maybe using a templating engine would help simplifying things and would also separate the logic part from the presentation part.
There are a few templating engines on OpenResty. We've used with success this one: https://github.com/bungle/lua-resty-template

Bogdan

Samarjit Uppal wrote:
--
You received this message because you are subscribed to the Google
Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to openresty -en+unsu...@googlegroups.com
<mailto:openresty-en...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

Samarjit Uppal

unread,
Apr 20, 2015, 4:58:01 AM4/20/15
to openre...@googlegroups.com

Thanks much Bogdan. Will try that out.
Reply all
Reply to author
Forward
0 new messages