ferron

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

commit 77182c9b88c10dd4f03223c62f80c2a8af352d92
parent 7654db08e2b7bc302d52cd6218f710b83bfb859b
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sat, 11 Aug 2018 10:43:47 -0400

Add prints to test

Diffstat:
Mferron/utilities/file-utils.lua | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ferron/utilities/file-utils.lua b/ferron/utilities/file-utils.lua @@ -71,7 +71,11 @@ function fileutils.pushfilecontent(pathtofile, data) end function fileutils.getrelpath(file) - return file:sub((Ferron.site.path .. Ferron.site.siteconfig.paths.content):len() + 1) + print(file) + print(Ferron.site.path .. Ferron.site.siteconfig.paths.content) + print(file:sub((Ferron.site.path .. Ferron.site.siteconfig.paths.content):len() + 1)) + os.exit('1') + return file:sub((Ferron.site.path .. Ferron.site.siteconfig.paths.content):len() + 1) end function fileutils.sethtmlpath(folder)