Throw error messages on stderr
[oweals/luci.git] / libs / web / luasrc / template.lua
index 4aa9b0933ab6f41bc130c9063a5caa6ccb42c971..dc6e5bb7ddc9417f54bd281da10cb09ad69228c9 100644 (file)
@@ -63,7 +63,7 @@ function compile(template)
 
        -- Search all <% %> expressions
        local function expr_add(ws1, skip1, command, skip2, ws2)
-               table.insert(expr, command)
+               expr[#expr+1] = command
                return ( #skip1 > 0 and "" or ws1 ) .. 
                       "<%" .. tostring(#expr) .. "%>" ..
                       ( #skip2 > 0 and "" or ws2 )