--- 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