ferron

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

commit b88e3f6d69ac657c68686cdbc18268ab2283be06
parent 4dac931d906dea6844ae98311575348a5e966c36
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Tue, 28 Nov 2017 14:32:31 -0500

Add feedback messages.

Diffstat:
Mfunctions/create-archetype-content.lua | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/functions/create-archetype-content.lua b/functions/create-archetype-content.lua @@ -40,6 +40,14 @@ local function createarchetypecontent() ) ) + if path.isfile(contentpath .. archetype.filename .. ".md") + and path.isfile(contentpath .. archetype.filename .. ".json") + then + print("¤¤ The files `" .. contentpath .. "{" .. archetype.filename .. ".md," .. archetype.filename .. ".json}` have been created. ¤¤") + else + print("! Error, something went wrong !") + end + os.exit() end end