ferron

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

commit 966680fe07a860647809fac98bb9989f650f19c5
parent 0a7f517c9fc2e732d1c9d1507e0e17ce73c98de2
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Thu,  7 Feb 2019 10:05:59 -0500

Return directly the require

Diffstat:
Mferron/site.lua | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/ferron/site.lua b/ferron/site.lua @@ -33,9 +33,7 @@ end function site.getsiteconfig(sitename) package.path = package.path .. ";sites/".. sitename .."/?.lua" - local siteconfig = require "config" - - return siteconfig + return require "config" end function site.setsite(sitename)