]> git.nbdom.net Git - nb.git/commitdiff
lib/lua/nb.lua
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 6 Jun 2018 16:37:25 +0000 (17:37 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 6 Jun 2018 16:37:25 +0000 (17:37 +0100)
lib/lua/nb.lua
www/dbq/dbq.php

index 27be29b9e7fefa6ec31b418c2c62eec59c657263..ade4b932c7783847ad819b74007d5aa523a559ff 100644 (file)
@@ -138,6 +138,9 @@ function nb:ngx_location_tmpl(fheader,ffooter)
        -- if not vars.title then vars.title = string.match(ngx.var.http_host,'^([^%.]+)') end
 
        content = self:html_fix(content)
+
+       -- See: /usr/local/share/lua/5.1/resty/template.lua
+       -- Same as: template.print(template.compile(content,vars)(context))
        template.render(content,vars)
 
        ngx.exit(0)
index 10b34b34bd0f5eb0e0b50a78b8aba81d41840eb7..f679f847ff570e3c40cfc366ce6702d980d3fd04 100644 (file)
@@ -123,6 +123,7 @@ class DbQ extends nb {
                        'format_html_ua_exp',
                        'format_cli',
                        'expires',
+                       'base',
                ] as $k) {
                        $env = 'DBQ_'.strtoupper($k);