From: Nicolas Boisselier Date: Wed, 17 Apr 2019 18:56:15 +0000 (+0100) Subject: lib/lua/nb.lua X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=1d431f41088d141df68d02a2c114519c92ee6b9a;p=nb.git lib/lua/nb.lua --- diff --git a/lib/lua/nb.lua b/lib/lua/nb.lua index 3bc3d989..fcb1411d 100644 --- a/lib/lua/nb.lua +++ b/lib/lua/nb.lua @@ -95,6 +95,9 @@ function nb:ngx_location_tmpl(fheader,ffooter) } --if vars.body_id == '' then vars.body_id='index' end + -- For current path require + package.path = path .. "/?.lua;" .. package.path + local template = require "resty.template" -- NB 25.05.18 template.print = function(s) -- NB 25.05.18 ngx.print(s)