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:
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.