made sitelib clean up after itself; note to self: investigate using pipes

This commit is contained in:
Izaya 2018-10-06 23:16:33 +10:00
parent f85f9a2b38
commit 60c2013872

View File

@ -33,6 +33,7 @@ function sitelib.parsepage(s)
f:write(page.md) f:write(page.md)
f:close() f:close()
page.html = io.popen("markdown "..fn):read("*a") page.html = io.popen("markdown "..fn):read("*a")
os.execute("rm "..fn)
-- SKS specific stuff starts here -- SKS specific stuff starts here
page.html=page.html:gsub("++leftcol",'<div class="left-column">') page.html=page.html:gsub("++leftcol",'<div class="left-column">')
page.html=page.html:gsub("++colbreak",'</div><div class="left-column">') page.html=page.html:gsub("++colbreak",'</div><div class="left-column">')