motyl

Opinionated blog-aware static site generator written in Ruby
Log | Files | Refs | README | LICENSE

commit 250c8cf14f2a1b0dc063ecea97b61e0122f0b4c2
parent 1fa28e9a3c7af2e4013d9ec76a036fd3532bbec7
Author: Frederic Cambus <fred@statdns.com>
Date:   Mon, 24 Apr 2017 18:45:39 +0200

Pass all pages and posts through the templates renderer, so users can use embed mustache variables within content

Diffstat:
Msrc/motyl.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/motyl.lua b/src/motyl.lua @@ -92,7 +92,7 @@ local function render(directory) if extension == "md" then local path = file:match "(.*).md$" data.page = loadYAML(directory .. "/" .. path .. ".yaml") - data.page.content = loadMD(directory .. "/" .. file) + data.page.content = lustache:render(loadMD(directory .. "/" .. file), data) if data.page.url == nil then data.page.url = path .. "/" end