summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-lua-runtime/luasrc/dispatcher.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-lua-runtime/luasrc/dispatcher.lua')
-rw-r--r--modules/luci-lua-runtime/luasrc/dispatcher.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/luci-lua-runtime/luasrc/dispatcher.lua b/modules/luci-lua-runtime/luasrc/dispatcher.lua
index 608b9b6674..93f7f8949b 100644
--- a/modules/luci-lua-runtime/luasrc/dispatcher.lua
+++ b/modules/luci-lua-runtime/luasrc/dispatcher.lua
@@ -354,6 +354,12 @@ function invoke_form_action(model, ...)
_G.L.include("footer")
end
+function render_lua_template(path)
+ local tpl = require "luci.template"
+
+ tpl.render(path, getfenv(1))
+end
+
function call(name, ...)
return {