ferron

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

commit e5d4e5457e88244eed46a1aaf656449d97b05758
parent 2c5fa9680a101ce38884c026942192e85f9ffdf0
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Tue, 16 Oct 2018 15:12:25 -0400

Rename settemplate to selecttemplate

Diffstat:
Mferron/list.lua | 2+-
Mferron/page.lua | 2+-
Mferron/utilities/template-utils.lua | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ferron/list.lua b/ferron/list.lua @@ -106,7 +106,7 @@ function list.makelist() fileutils.pushfilecontent( list_htmlpath .. "/" .. fileutils.getplainname(list) .. ".html", templateutils.processmustache( - fileutils.pullfilecontent(templateutils.settemplate(true, list_conf.template)), + fileutils.pullfilecontent(templateutils.selecttemplate(true, list_conf.template)), templatespath .. "/partials", list_conf_mt ) diff --git a/ferron/page.lua b/ferron/page.lua @@ -59,7 +59,7 @@ function page.makepage() fileutils.pushfilecontent( page_htmlpath .. "/" .. fileutils.getplainname(page) .. ".html", templateutils.processmustache( - fileutils.pullfilecontent(templateutils.settemplate(false, page_conf.template)), + fileutils.pullfilecontent(templateutils.selecttemplate(false, page_conf.template)), templatespath .. "/partials", page_conf_mt ) diff --git a/ferron/utilities/template-utils.lua b/ferron/utilities/template-utils.lua @@ -6,7 +6,7 @@ local fileutils = require "ferron.utilities.file-utils" local templateutils = {} -- set template -function templateutils.settemplate(index, templatename) +function templateutils.selecttemplate(index, templatename) local templatepath = Ferron.site.path .. Ferron.site.config.paths.templates .. "/" local template = nil