commit 5c528774e96ee69bd80aafab9146a4dc5f0f950b
parent 7e59cc2a8b60f0244c74da663d6ba4a188cbeff0
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date: Mon, 10 Dec 2018 16:19:28 -0500
Replace path methods by custom ones
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ferron/utilities/file-utils.lua b/ferron/utilities/file-utils.lua
@@ -33,7 +33,7 @@ end
function fileutils.isMarkdown(filepath)
if fileutils.isFile(filepath)
and (mimetypes.guess(filepath) == "text/x-markdown"
- or path.extension(filepath) == ".md") then
+ or fileutils.getextension(filepath) == ".md") then
return filepath
end
diff --git a/ferron/utilities/template-utils.lua b/ferron/utilities/template-utils.lua
@@ -48,7 +48,7 @@ end
-- process template
function templateutils.rendertemplate(template, data, partials)
- local extension = path.extension(template)
+ local extension = fileutils.getextension(template)
local render = nil
if extension == ".etlua" then