projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
715ae85
)
libs/web: Added template comments
author
Steven Barth
<steven@midlink.org>
Mon, 7 Jul 2008 20:58:10 +0000
(20:58 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 7 Jul 2008 20:58:10 +0000
(20:58 +0000)
libs/web/luasrc/template.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/template.lua
b/libs/web/luasrc/template.lua
index f7dcb56028ee1c7a570c3b068f336e33f87264a0..e5a4884ce53bb4ab152abaf0d26880e7ff06eee5 100644
(file)
--- a/
libs/web/luasrc/template.lua
+++ b/
libs/web/luasrc/template.lua
@@
-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