Browse Source

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

Izaya 2 months ago
parent
commit
60c2013872
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      sitelib.lua

+ 1
- 0
sitelib.lua View File

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