made sitelib clean up after itself; note to self: investigate using pipes
This commit is contained in:
parent
f85f9a2b38
commit
60c2013872
@ -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">')
|
||||||
|
Loading…
Reference in New Issue
Block a user