Aapo Talvensaari

Results 278 comments of Aapo Talvensaari

Perhaps we should add somekind of streaming support and move to use LuaJIT string buffer (some things might be hard with that though, e.g. if using master pages etc. which...

@xiangnanscu, I do not have plans, though contributions are welcomed!

Good suggestion. Can you give me an example file, and call where you encounter this error. It would help me get going with this enhancement (you may replace that error...

I just committed one patch. This patch doesn't include any debugging facilities, but template.output now treats the `ngx.null` the same as Lua `nil` (i.e. it gets converted to empty string):...

I also changed template.output function to call `tostring` on non `nil`, `ngx.null` and `function` values: https://github.com/bungle/lua-resty-template/commit/94a87ddcdeec9115e6d2e3f4272312a6972a47d5 Please let me know if it helps your pain. Or do you have other...

If you want to have an error page in production, you could do this: ``` lua if not pcall(view.render, view) then ngx.say("ERROR") -- or render error template with lua-resty-template end...

But let's keep this open still. I think that better debugging facilities are still a good thing to have. Maybe someone comes, and suggests something nice. I do not have...

That's a nice question. Let's disquss this a little bit. I'm not sure I'm on a same page, so please correct if I have understood something wrong. Why aren't you...

I was also thinking that maybe you can add current env to the context (`getfenv` or with Lua >= 5.2 `_ENV`). I haven't tested these. In general, it is not...

I added this to a roadmap, but I still need to think what is the best way to implement it.