ferron

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

commit ca8a6953c1e8ace53f902de668d1116f9ad8db37
parent 580bf53236fe6ed815fd0d5e0fe2c4cbc8e71aa0
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Fri, 21 Dec 2018 16:09:39 -0500

Create the getpageconf function

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

diff --git a/ferron/page.lua b/ferron/page.lua @@ -7,6 +7,13 @@ local templateutils = require "ferron.utilities.template-utils" local site = require "ferron.site" local page = {} +local getpageconf = function(page) + local conflua = fileutils.isFile(fileutils.removeextension(page) .. ".lua") + local confjson = fileutils.isFile(fileutils.removeextension(page) .. ".json") + + print(conflua) +end + function page.render(pagesource) local page = pagesource local page_htmlpath = fileutils.sethtmlpath(fileutils.getrelpath(fileutils.getdirname(page))) @@ -42,6 +49,7 @@ function page.render(pagesource) ) ) --print(page) + getpageconf(page) return end