fixes

Mon, 14 Sep 2009 00:16:13 +0300

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 14 Sep 2009 00:16:13 +0300
changeset 4
4cb0d1dbc65b
parent 3
b2df1b3f2c83
child 5
7667b101cb1e

fixes

handlers.lua file | annotate | diff | comparison | revisions
handlers/render.lua file | annotate | diff | comparison | revisions
--- a/handlers.lua	Sun Sep 13 22:22:47 2009 +0300
+++ b/handlers.lua	Mon Sep 14 00:16:13 2009 +0300
@@ -7,6 +7,7 @@
 
 local available={
     { pattern = "%.lg$", handler = handlers.render},
+    { pattern = "%.note$", handler = handlers.ignore},
     { pattern = "",      handler = handlers.copy},
 }
 
--- a/handlers/render.lua	Sun Sep 13 22:22:47 2009 +0300
+++ b/handlers/render.lua	Mon Sep 14 00:16:13 2009 +0300
@@ -101,7 +101,7 @@
     if not build then
         if page.meta.dependencies then
             for p, _ in pairs(env.pages) do
-                if string.match(page.meta.dependencies, p) then
+                if string.match(p, page.meta.dependencies) then
                     table.insert(deps, path.join(env.paths.src, p))
                 end
             end

mercurial