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.

16 lines
490 B

-- @module sitemapxml
local sitemapxml = {}
local etlua = require 'etlua'
local file = require 'satelito.file'
local template = require 'satelito.template'
function sitemapxml.make(sitemap, templates, destination)
local _sitemapxml = etlua.compile(, 'sitemap.xml')))
local sitemapxml_xml = _sitemapxml({sitemap = sitemap})
local sitemapxml_xml_path = destination..'sitemap.xml'
return sitemapxml_xml, sitemapxml_xml_path
return sitemapxml