On Fri, Mar 16, 2012 at 5:16 AM, <milspec@gmx.de> wrote:
> I have 2 questions:
>
> 1) Are there plans to have openresty with nginx 1.1.x?
>
Yes. There's an "nginx-1.1.x" branch in ngx_openresty's git repository
which is still a work in progress:
https://github.com/agentzh/ngx_openresty/tree/nginx-1.1.x
But you're very welcome to try it out :)
This branch is expected to become stable when nginx 1.1.x becomes stable.
> 2) Are you planning a "Lua preprocessor" which converts this:
>
> ############
> <html>
> <body>
> <?
> local a=5;
> ngx.say("Hello!"..a);
> ?>
> </body>
> </html>
> ############
>
> into:
>
> ############
> ngx.say("<html>
> <body>");
> local a=5;
> ngx.say("Hello!"..a);
> ngx.say("</body>
> </html>");
> ############
>
> So one could mix html with Lua.
>
We may not be going to implement that as ngx_lua primitives because
you can already do that yourself via the lua-template-precessor
library:
http://www.savarese.com/software/ltp/
or other different template engines in the Lua world. We'd leave the
choice to the Lua user programmer.
Best,
-agentzh
P.S. Because this mail does not contain any sensitive information, I'm
cc'ing the openresty mailing list so that other people can see this
discussion :)