motyl

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

commit 9620a1e9b15a46d3edb9fbe5ae548b165e389967
parent da69f6810717257946b3868a0f03973d892d68d1
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat, 27 Feb 2016 18:46:08 +0100

Adding a status function to display timestamped messages

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

diff --git a/motyl.lua b/motyl.lua @@ -48,6 +48,10 @@ local function sortDates(a,b) return a.date > b.date end +local function status(message) + print("[" .. os.date("%X") .. "] " .. message) +end + -- Loading configuration local data = {} data.site = loadJSON("config.json")