]> git.nbdom.net Git - nb.git/commitdiff
lib/lua/nb.lua
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 20 May 2018 16:17:04 +0000 (17:17 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 20 May 2018 16:17:04 +0000 (17:17 +0100)
lib/lua/nb.lua

index fe431beca496d56f272a77741c43280256a744a3..7a63aedeaebf8c899f9de0342f2194d6ff1b39bf 100644 (file)
@@ -31,7 +31,7 @@ end
 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