libs/web: Added template comments
authorSteven Barth <steven@midlink.org>
Mon, 7 Jul 2008 20:58:10 +0000 (20:58 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 7 Jul 2008 20:58:10 +0000 (20:58 +0000)
libs/web/luasrc/template.lua

index f7dcb56028ee1c7a570c3b068f336e33f87264a0..e5a4884ce53bb4ab152abaf0d26880e7ff06eee5 100644 (file)
@@ -102,6 +102,8 @@ function compile(template)
                        end
                elseif p == "=" then
                        re = r_pexec:format(v:sub(2))
+               elseif p == "#" then
+                       re = ""
                else
                        re = r_exec:format(v)
                end