satelito

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

commit aa8b89e248f23c036000ffccd5ce506a7f736c2e
parent c8d951e18ff555b7e590bb23dd9d26540edcdd49
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Fri,  4 Mar 2022 20:22:46 -0500

Remove a doublon

Diffstat:
Msatelito/model.lua | 9+--------
1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/satelito/model.lua b/satelito/model.lua @@ -9,6 +9,7 @@ local file = require 'satelito.file' local list = require 'satelito.list' local markdown = require 'discount' -- lua-discount local template = require 'satelito.template' +local inspect = require 'inspect' function model.set(filepath, config, contentdir) local pagemeta = file.get_metafile(filepath) or {} @@ -74,14 +75,6 @@ function model.set(filepath, config, contentdir) pagemeta.footer = pagemeta.footer or 'footer' pagemeta.feed = pagemeta.feed or 'feed.xml' - pagemeta.include = function(templatename) - -- Include a partial template and compile it - -- @usage <%- include("test-partial") %> - local inc = etlua.compile(file.read(template.find(templates, templatename))) - - return inc(pagemeta) - end - -- Include a partial template and compile it -- @usage <%- include("test-partial") %> pagemeta.include = function(templatename)