ferron

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

commit 1df726ef79660c83d82d2f175b133f2e54a83c49
parent 5c528774e96ee69bd80aafab9146a4dc5f0f950b
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Tue, 11 Dec 2018 18:41:43 -0500

Replace path.basename by fileutils.getbasename

Diffstat:
Mferron/plugin.lua | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ferron/plugin.lua b/ferron/plugin.lua @@ -1,11 +1,11 @@ --[[ Plugin Module ]]-- +local fileutils = require "ferron.utilities.file-utils" local plugin = {} function plugin.run(site, plugname) - local path = require "path" - local plugin = require(site.config.sites .. path.basename(site.path) .. site.config.paths.plugins .. "/" .. plugname) + local plugin = require(site.config.sites .. fileutils.getbasename(site.path) .. site.config.paths.plugins .. "/" .. plugname) return plugin.init(site) end