aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/notYetAnotherWiki.lua
diff options
context:
space:
mode:
Diffstat (limited to 'notYetAnotherWiki.lua')
-rwxr-xr-xnotYetAnotherWiki.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua
index c3db5f1..d592d06 100755
--- a/notYetAnotherWiki.lua
+++ b/notYetAnotherWiki.lua
@@ -97,6 +97,8 @@ for name, file in pairs(Files) do
97 Files[name] = nil 97 Files[name] = nil
98 else 98 else
99 -- Ordinary md file, stash it's metadata and parsed body. 99 -- Ordinary md file, stash it's metadata and parsed body.
100 h = io.open(name .. '.body', 'r')
101 if nil ~= h then body = h:read('*a') ; h:close() end
100 file.metadata = metadata 102 file.metadata = metadata
101 file.body = body 103 file.body = body
102 table.insert(Subs[path].files, bit) 104 table.insert(Subs[path].files, bit)