satelito

Static [web] site (or page) generator (ssg) made with Lua script.
git clone git://soucy.cc/satelito.git
Log | Files | Refs | README

commit 010cb5f9e42f9e6c2a3ef8ea7ba727dd08e216da
parent 8fe9b5df651d8af817569860390b584a89802810
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Mon, 22 Nov 2021 22:36:55 -0500

Make some templates tests

Diffstat:
M.editorconfig | 4----
Msatelito/page.lua | 3++-
2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/.editorconfig b/.editorconfig @@ -10,7 +10,3 @@ insert_final_newline = true indent_style = space indent_size = 2 trim_trailing_whitespace = true - -# 2 space indentation (CSS, YML, and templates HTML big family) -#[*.{css,yml,xml,xhtml,html,vm,ftl,mustache,twig,hbs,yaml}] -#indent_size = 2 diff --git a/satelito/page.lua b/satelito/page.lua @@ -14,11 +14,12 @@ local template = require 'satelito.template' function page.make(filemeta, templates) -- Compile different parts of the page - local post = etlua.compile(file.read(template.find(templates, filemeta.template))) local head = etlua.compile(file.read(template.find(templates, filemeta.head))) local navigation = etlua.compile(file.read(template.find(templates, filemeta.navigation))) + local post = etlua.compile(file.read(template.find(templates, filemeta.template))) local footer = etlua.compile(file.read(template.find(templates, filemeta.footer))) local layout = etlua.compile(file.read(template.find(templates, filemeta.layout))) + -- Then put them all together local html = layout( lume.extend({},