Skip to content

Commit

Permalink
Added $templates:CONFIG_USE_CLASS_SYNTAX to the default templating-…
Browse files Browse the repository at this point in the history
…configuration
  • Loading branch information
Bpolitycki committed Jan 18, 2024
1 parent 45b8a06 commit 0a9b651
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/templates.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ declare function templates:apply($content as node()+, $resolver as function(xs:s

declare %private function templates:get-default-config($resolver as function(xs:string, xs:integer) as item()?) as map(*) {
map {
$templates:CONFIG_USE_CLASS_SYNTAX: $templates:SEARCH_IN_CLASS,
$templates:CONFIG_FN_RESOLVER : $resolver,
$templates:CONFIG_PARAM_RESOLVER : templates:lookup-param-from-restserver#1
}
Expand Down Expand Up @@ -138,7 +139,7 @@ declare function templates:process($nodes as node()*, $model as map(*)) {
return
if ($dataAttr) then
templates:call($dataAttr, $node, $model)
else if (($model($templates:CONFIGURATION)($templates:CONFIG_USE_CLASS_SYNTAX), $templates:SEARCH_IN_CLASS)[1]) then
else if ($model?($templates:CONFIGURATION)?($templates:CONFIG_USE_CLASS_SYNTAX)) then
let $instructions := templates:get-instructions($node/@class)
return
if ($instructions) then
Expand Down

0 comments on commit 0a9b651

Please sign in to comment.