Static site generator made with Lua script.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
487 B

-- @module feed
local feed = {}
local etlua = require 'etlua'
local lume = require 'satelito.lib.lume.lume'
local file = require 'satelito.file'
local template = require 'satelito.template'
function feed.make(filemeta)
local _feed = etlua.compile(, filemeta.feed)))
local feed_xml = _feed(lume.extend({}, filemeta))
local feed_xml_path = filemeta.exportlink:match('(.+)%..*')..'.xml'
return feed_xml, feed_xml_path
return feed