Introduce luci.dispatcher.get(...) which works like node(...) but does
not disable the autocreated flag and does not overwrite the target controller so that call()-targets won't loose their binding to their controller
This commit is contained in:
parent
a813f9532b
commit
147badd0b5
1 changed files with 8 additions and 0 deletions
|
@ -513,6 +513,14 @@ function entry(path, target, title, order)
|
||||||
return c
|
return c
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Fetch or create a dispatching node without setting the target module or
|
||||||
|
-- enabling the node.
|
||||||
|
-- @param ... Virtual path
|
||||||
|
-- @return Dispatching tree node
|
||||||
|
function get(...)
|
||||||
|
return _create_node({...})
|
||||||
|
end
|
||||||
|
|
||||||
--- Fetch or create a new dispatching node.
|
--- Fetch or create a new dispatching node.
|
||||||
-- @param ... Virtual path
|
-- @param ... Virtual path
|
||||||
-- @return Dispatching tree node
|
-- @return Dispatching tree node
|
||||||
|
|
Loading…
Reference in a new issue