From: Nicolas Boisselier Date: Wed, 2 May 2018 02:19:34 +0000 (+0100) Subject: lib/lua/nb.lua X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=beed059e5db6badb28474d6414dc8d244b66c00a;p=nb.git lib/lua/nb.lua --- diff --git a/lib/lua/nb.lua b/lib/lua/nb.lua index 4b80bf90..ba5d0d53 100644 --- a/lib/lua/nb.lua +++ b/lib/lua/nb.lua @@ -20,6 +20,10 @@ function nb:_ngx_location_md() end function nb:ngx_location_md() +-- location ~ \.(md|html)$ { +-- default_type text/html; +-- content_by_lua 'dofile(ngx.var.NB_ROOT .. "/lib/lua/nb.lua") nb:ngx_location_md()'; +-- } local template = require "resty.template" if self.dev then template.caching(false) end