end
end
- local head = nb:readall(ngx.var.document_root .. "/head.html")
- if head then template.render(head,vars) end
+ local header = nb:readall(ngx.var.document_root .. "/header.html")
+ if header then template.render(header,vars) end
content = template.output(template.compile(content)(vars))
if string.match(file,'%.md$') then
end
- local tail = nb:readall(ngx.var.document_root .. "/tail.html")
- if tail then template.render(tail,vars) end
+ local footer = nb:readall(ngx.var.document_root .. "/footer.html")
+ if footer then template.render(footer,vars) end
ngx.exit(0)
end