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:
Jo-Philipp Wich 2015-10-07 13:03:42 +02:00
parent 3f29078fb9
commit 49a2cb5ad1

View file

@ -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()