handlers/render.lua

changeset 4
4cb0d1dbc65b
parent 3
b2df1b3f2c83
child 7
038275cd92ed
--- 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