satelito

Static [web] site (or page) generator (ssg) made with Lua script.
git clone git://soucy.cc/satelito.git
Log | Files | Refs | README

commit 729bccb516f767845f223911442f6342d7a052d0
parent cbff3b05d85862a14eb3a5c1247e8c2ace98b266
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun, 25 Apr 2021 20:47:29 -0400

Add a message if a file is missing

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

diff --git a/satelito/file.lua b/satelito/file.lua @@ -21,6 +21,10 @@ end -- Open & read the content of a file function file.read(filepath) + if not filepath then + print('A file is missing ...') + end + local _file = assert(io.open(filepath, 'r')) local content = _file:read '*a'