diff options
Diffstat (limited to 'libs/web')
-rw-r--r-- | libs/web/luasrc/template.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/web/luasrc/template.lua b/libs/web/luasrc/template.lua index 17e1daad7..659c7216d 100644 --- a/libs/web/luasrc/template.lua +++ b/libs/web/luasrc/template.lua @@ -80,17 +80,17 @@ function compile(template) template = sanitize(template) -- Template module header/footer declaration - local header = "write('" - local footer = "')" + local header = 'write("' + local footer = '")' template = header .. template .. footer -- Replacements - local r_include = "')\ninclude('%s')\nwrite('" - local r_i18n = "'..translate('%1','%2')..'" - local r_i18n2 = "'..translate('%1', '')..'" - local r_pexec = "'..(%s or '')..'" - local r_exec = "')\n%s\nwrite('" + local r_include = '")\ninclude("%s")\nwrite("' + local r_i18n = '"..translate("%1","%2").."' + local r_i18n2 = '"..translate("%1", "").."' + local r_pexec = '"..(%s or "").."' + local r_exec = '")\n%s\nwrite("' -- Parse the expressions for k,v in pairs(expr) do |