local vars = {
}
- if not fheader then fheader = root .. "/header.tmpl.html" end
- if not ffooter then ffooter = root .. "/footer.tmpl.html" end
+ if not fheader then fheader = root .. "/tmpl/header.html" end
+ if not ffooter then ffooter = root .. "/tmpl/footer.html" end
local template = require "resty.template"
-- NB 25.05.18 template.print = function(s)
template.markdown = require "resty.hoedown"
-- ngx.say('zaza' .. template.markdown.html.flags.table)
--content = self:md2html(content)
- content = '{(header.tmpl.html)}{*markdown([[' .. content .. ']], { smartypants = false, table = true })*}{(footer.tmpl.html)}'
+ content = '{(header.html)}{*markdown([[' .. content .. ']], { smartypants = false, table = true })*}{(footer.html)}'
-- content = self:md2html(content)
ishtml = false
elseif string.match(file,'%.md$') then