app:addRoot($model as map(*)) as item()*
$model | $model |
app:getAll() as map(*)
app:get_uri($node as node()) as item()*
$node | $node |
app:helloworld($node as node(), $model as map(*)) as item()*
$node | $node |
$model | $model |
app:inputPrzebieg($node as node(), $model as map(*), $name as xs:string?) as item()*
$node | $node |
$model | $model |
$name? | $name? |
app:maxCountNodes($model as map(*)) as item()*
$model | $model |
app:myCount($model as map(*)) as item()*
$model | $model |
app:search($node as node(), $model as map(*)) as map(*)
$node | $node |
$model | $model |
app:searchPrzebieg($model as map(*)) as map(*)
$model | $model |
app:searchTyp($model as map(*)) as map(*)
$model | $model |
app:searchZajezdnia($model as map(*)) as map(*)
$model | $model |
app:selectHierarchy($node as node(), $model as map(*), $name as xs:string?) as item()*
$node | $node |
$model | $model |
$name? | $name? |
app:selectZajezdnia($node as node(), $model as map(*), $name as xs:string?) as item()*
$node | $node |
$model | $model |
$name? | $name? |
app:svg($node as node(), $model as map(*)) as item()*
$node | $node |
$model | $model |
app:test($node as node(), $model as map(*)) as item()*
This is a sample templating function. It will be called by the templating module if it encounters an HTML element with an attribute: data-template="app:test" or class="app:test" (deprecated). The function has to take 2 default parameters. Additional parameters are automatically mapped to any matching request or function parameter.
$node | the HTML node with the attribute which triggered this call |
$model | a map containing arbitrary data - used to pass information between template calls |