ferron

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

commit a79bf042bb29c3edab6e4d39c3908f98135cca58
parent 902d9154666953ff9ee630770a0ea5b9685db21d
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Tue, 30 Oct 2018 09:30:54 -0400

Add the new method to render templates

Diffstat:
Mferron/list.lua | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ferron/list.lua b/ferron/list.lua @@ -105,10 +105,10 @@ function list.makelist() -- Build and push the HTML page fileutils.pushfilecontent( list_htmlpath .. "/" .. fileutils.getplainname(list) .. ".html", - templateutils.rendermustache( - fileutils.pullfilecontent(templateutils.selecttemplate(true, list_conf.template)), - templatespath .. "/partials", - list_conf_mt + templateutils.rendertemplate( + templateutils.selecttemplate(false, list_conf.template), + list_conf_mt, + templatespath .. "/partials" ) ) end,