satelito

Static [Web] Site (or Page) Generator (SSG) made with Lua script.
git clone git://soucy.cc/git/satelito.git
Log | Files | Refs | README

commit e092a896e9c6060d3b2243cfc38598b0c5b8ec64
parent 6e74c3fa777b21cc826bdc921f7f7843b24cf69b
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Mon,  1 Feb 2021 11:08:35 -0500

Remove some returns

Diffstat:
Msatelito/init.lua | 22++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/satelito/init.lua b/satelito/init.lua @@ -23,19 +23,19 @@ package.path = package.path .. ';'.. arg[0]:match("(.*/)") ..'/?.lua' -- local argparse = require 'argparse' -local assets = require 'drferron.assets' -local feed = require 'drferron.feed' -local file = require 'drferron.file' +local assets = require 'satelito.assets' +local feed = require 'satelito.feed' +local file = require 'satelito.file' local inspect = require 'inspect' -local page = require 'drferron.page' +local page = require 'satelito.page' local parser = argparse() :name 'satelito' - :description '*satelito* is a static site generator in lua script.' - :epilog 'For more info, see https://soucy.cc/git/satelito/file/README.org.html' + :description 'Satelito is a static site generator in lua script.' + :epilog 'For more info, see https://soucy.cc/git/satelito/file/README.md.html' parser:argument('markdown filepath', 'The filepath to a markdown file'):args '?' -parser:flag('-e --export', 'Export the outputed HTML in your *public_html/* folder.') +parser:flag('-e --export', 'Export the outputed HTML in your `public_html/` folder.') --parser:flag('-s --site', 'Explicitly process the content in site mode instead of the default page mode.') @@ -45,9 +45,9 @@ if args['markdown filepath'] and file.is_markdown(args['markdown filepath']) the local html, html_path = page.build(args['markdown filepath']) if args['export'] then - return page.export(html_path, html) + page.export(html_path, html) else - return print(html) + print(html) end else for filepath in (io.lines()) do @@ -67,10 +67,8 @@ else -- Copy assets to the public_html/ folder assets.export(filepath) - - return else - return print(html) + print(html) end else print("Wrong data type!")