ferron

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

commit d0fbcf8daf7620b9e86db92c1baba60defc4dd6c
parent d391249b2d0a589bf57f1be3b1104f380e781549
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Tue, 30 Oct 2018 09:31:51 -0400

Merge branch 'master' of github.com:hs0ucy/Ferron

Diffstat:
Mferron/utilities/template-utils.lua | 9++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/ferron/utilities/template-utils.lua b/ferron/utilities/template-utils.lua @@ -41,11 +41,9 @@ end -- function templateutils.renderetlua(template, data) - local tpl = etlua.compile(template) + local render = etlua.compile(template) - print(tpl(data)) - - return tpl(data) + return render(data) end -- process template @@ -53,12 +51,9 @@ function templateutils.rendertemplate(template, data, partials) local extension = path.extension(template) local render = nil - if extension == ".etlua" then - print(extension) render = templateutils.renderetlua(fileutils.pullfilecontent(template), data) elseif extension == ".mustache" then - print(extension) render = templateutils.rendermustache(fileutils.pullfilecontent(template), partials, data) end