motyl

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

commit 729b5c4b45d22ab480d5547f131fc4e93e407f04
parent 2b1901a6fce19a1199b3f83af60b8035dbf98479
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat, 27 Feb 2016 19:08:36 +0100

Initial "motyl init" functionality to initialise a new project

Diffstat:
Mmotyl.lua | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/motyl.lua b/motyl.lua @@ -58,6 +58,15 @@ data.site = loadJSON("config.json") data.site.datetime = os.date("%c") data.site.year = os.date('%Y') +if arg[1] == "init" then + lfs.mkdir("deploy") + lfs.mkdir("pages") + lfs.mkdir("posts") + lfs.mkdir("static") + + os.exit(1) +end + -- Loading templates local templates = { header = readFile("templates/header.mustache"),