ferron

Ferron is a fast and simple static website generator made with Lua.
Log | Files | Refs | Submodules | README | LICENSE

commit 8919845bffada11306443ddae68b7bb13b0abe04
parent 00e0570e0abe423ba00e426457514a1009e7eb1a
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sat, 25 Apr 2020 22:44:40 -0400

Print the created html page

Diffstat:
Mferron/page.lua | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ferron/page.lua b/ferron/page.lua @@ -138,14 +138,15 @@ function page.render(page, sitedata) -- Build and push the HTML page fl.pushfilecontent( - pathToHtml .. '/' .. fl.getplainname(page) .. '.html', + pathToHtml .. fl.getplainname(page) .. '.html', tp.rendertemplate( tp.selecttemplate(fl.isIndex(page), metaTable.template, sitedata.templates), metaTable ) ) - return --print(page) + return fl.isFile(pathToHtml .. fl.getplainname(page) .. '.html') + and print(pathToHtml .. fl.getplainname(page) .. '.html') end function page.makepages(sitedata)