diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-07 13:03:42 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-10-07 13:03:42 +0200 |
commit | 49a2cb5ad11ccc0225fd3fa1de4b85a0618bbb99 (patch) | |
tree | 4f79a079a5e65f9d9f1cd0f2e042767c77d5644c /modules/luci-base | |
parent | 3f29078fb938be66a0eb43bf50819c5f15e6d606 (diff) |
luci-base: expose luci.dispatcher.build_url() as url() in templates
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/luasrc/dispatcher.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-base/luasrc/dispatcher.lua b/modules/luci-base/luasrc/dispatcher.lua index 28dfd18bbe..5d9d1b0b1a 100644 --- a/modules/luci-base/luasrc/dispatcher.lua +++ b/modules/luci-base/luasrc/dispatcher.lua @@ -286,6 +286,7 @@ function dispatch(request) ifattr = function(...) return _ifattr(...) end; attr = function(...) return _ifattr(true, ...) end; token = ctx.urltoken.stok; + url = build_url; }, {__index=function(table, key) if key == "controller" then return build_url() |