From: Nicolas Boisselier Date: Tue, 5 Jun 2018 02:55:16 +0000 (+0100) Subject: /etc/nginx/git/lua-resty-hoedown/lib/resty/hoedown/document.lua X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=9da95653a49ee1e91904e0e7643511cfa3732396;p=nb.git /etc/nginx/git/lua-resty-hoedown/lib/resty/hoedown/document.lua --- diff --git a/lib/lua/nb.lua b/lib/lua/nb.lua index c1c5bad3..27be29b9 100644 --- a/lib/lua/nb.lua +++ b/lib/lua/nb.lua @@ -41,8 +41,8 @@ function nb:ngx_location_tmpl(fheader,ffooter) local vars = { } - if not fheader then fheader = root .. "/tmpl/header.html" end - if not ffooter then ffooter = root .. "/tmpl/footer.html" end + if not fheader then fheader = root .. "/tmpl/header.tmpl.html" end + if not ffooter then ffooter = root .. "/tmpl/footer.tmpl.html" end local template = require "resty.template" -- NB 25.05.18 template.print = function(s)