handlers.lua

changeset 3
b2df1b3f2c83
parent 2
3975fa5ed630
child 4
4cb0d1dbc65b
--- a/handlers.lua	Sat Sep 12 21:27:57 2009 +0300
+++ b/handlers.lua	Sun Sep 13 22:22:47 2009 +0300
@@ -6,14 +6,14 @@
 require("handlers.ignore")
 
 local available={
-    { pattern = "%.page$", handler = handlers.render},
-    { pattern = "",        handler = handlers.copy},
+    { pattern = "%.lg$", handler = handlers.render},
+    { pattern = "",      handler = handlers.copy},
 }
 
 
 function find(f)
     for _, h in ipairs(available) do
-        if string.match(h.pattern, f) then
+        if string.match(f, h.pattern) then
             return h.handler
         end
     end

mercurial