]> git.nbdom.net Git - nb.git/commitdiff
lib/lua/nb.lua
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 2 May 2018 02:19:34 +0000 (03:19 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 2 May 2018 02:19:34 +0000 (03:19 +0100)
lib/lua/nb.lua

index 4b80bf90697132035879b4329b82d82f220a8c7d..ba5d0d5320090ace73a4752427332ae327a63b9a 100644 (file)
@@ -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