local file = root .. ngx.var.uri;
local path = file:gsub('/[^/]+$','')
- if not fheader then fheader = root .. "/header.html" end
- if not ffooter then ffooter = root .. "/footer.html" end
+ if not fheader then fheader = root .. "/header.tmpl.html" end
+ if not ffooter then ffooter = root .. "/footer.tmpl.html" end
local template = require "resty.template"
if self.dev then template.caching(false) end
template.markdown = require "resty.hoedown"
-- ngx.say('zaza' .. template.markdown.html.flags.table)
--content = self:md2html(content)
- content = '{(header.html)}{*markdown([[' .. content .. ']], { smartypants = false, table = true })*}{(footer.html)}'
+ content = '{(header.tmpl.html)}{*markdown([[' .. content .. ']], { smartypants = false, table = true })*}{(footer.tmpl.html)}'
-- content = self:md2html(content)
ishtml = false
elseif string.match(file,'%.md$') then
// Write output
if ($this->expires and !preg_match('/^(dump|insert|update|replace|rm|vi)$/',$this->params['action'])) $this->page->expires = $this->expires;
+ #if ($this->is_html and $this->params['format'] != 'html') $this->_nopage = true;
if (empty($this->_nopage)) {
$this->page->headers_no_cache();