function nb:ngx_location_tmpl(fheader,ffooter)
-- See https://github.com/bungle/lua-resty-template
-- location ~ \.(md|html)$ {
--- content_by_lua 'package.path = ngx.var.NB_ROOT .. "/lib/lua/?.lua;" .. package.path local nb = require("nb") nb:ngx_location_tmpl()';
+-- content_by_lua_block { package.path = ngx.var.NB_ROOT .. "/lib/lua/?.lua;" .. package.path local nb = require("nb") nb:ngx_location_tmpl() }
-- }
if not fheader then fheader = ngx.var.document_root .. "/header.html" end
if not ffooter then ffooter = ngx.var.document_root .. "/footer.html" end