luci-base: expose luci.dispatcher.build_url() as url() in templates
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
3f29078fb9
commit
49a2cb5ad1
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue