Okay, after 280 commits this thing is starting to take an usable shape. I have done some perfomance tweaks (parser code is rewritten for example). The engine is quite fast, especially when cached. I have also added things like template_root, and template_location Nginx variables that are documented here:
https://github.com/bungle/lua-resty-template#nginx--openresty-configuration
The API feels quite stable now, and I do not have anything on my mind that would somehow break the API in the near future. I think that I have also documented this thing quite well now on Github's readme.
So feel free to try it out, and please report any bugs you find. I have personally tested this quite well (not automated yet, though), and it feels stable.
If you have any guestions on your mind, please do not hesitate to ask.
One thing I still have on my mind is the cache implementation. Right now it uses module level Lua table, and caches everything. I think that there might be a need to have a pluggable cache (you can already write your own, and disable automatic caching with template.caching(false)), the default implementation could be changed to act as a weak table: __mode = "kv", or I may implement LRU-type of cache. But right now it works ok for normal sites (not too many templates). But if you have tens of thousands templates, then you should look the memory usage too (or disable caching, and optionally implement your own).
Regards
Aapo