ferron

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

commit 321c696393599e09cb64352e6957b90ac98bdc7b
parent 8b505ec5e25aebad1db08d2cac8f5c773940311d
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Fri,  2 Feb 2018 17:15:03 -0500

Move devmode assignation.

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

diff --git a/ferron.lua b/ferron.lua @@ -8,6 +8,10 @@ Ferron = {} Ferron.site = {} Ferron.devmode = (arg[1] == "--dev" and true or false) +if Ferron.devmode == true then + inspect = require "inspect" +end + -- Ferron's Modules local site = require "ferron.site" local content = require "ferron.content" @@ -28,10 +32,6 @@ local exec = function(...) end end -if Ferron.devmode == true then - inspect = require "inspect" -end - Ferron.init = { site.getsites, site.setsite,