From: Steven Barth Date: Mon, 7 Jul 2008 20:58:10 +0000 (+0000) Subject: libs/web: Added template comments X-Git-Tag: 0.8.0~687 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=a41f33ba0188f897c6277cb23f9371749d2403f5;p=project%2Fluci.git libs/web: Added template comments --- diff --git a/libs/web/luasrc/template.lua b/libs/web/luasrc/template.lua index f7dcb56028..e5a4884ce5 100644 --- 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