Skip to content

Commit 3140fe5

Browse files
authored
Merge pull request #32 from joewiz/fix-function-documentation
Fix map constructor syntax
2 parents efd7e74 + 8b6da32 commit 3140fe5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/xar-resources/modules/app.xql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function app:action($node as node(), $model as map(*), $action as xs:string, $mo
9696
declare %private function app:browse($node as node(), $module as xs:string?) {
9797
let $functions := collection($config:app-data)/xqdoc:xqdoc[xqdoc:module/xqdoc:uri = $module]//xqdoc:function
9898
return
99-
map { "result" := $functions }
99+
map { "result": $functions }
100100
};
101101

102102
declare %private function app:search($node as node(), $module as xs:string?,
@@ -112,7 +112,7 @@ declare %private function app:search($node as node(), $module as xs:string?,
112112
default return ()
113113
order by $module/xqdoc:xqdoc/xqdoc:control/xqdoc:location/text(), $module/xqdoc:xqdoc/xqdoc:module/xqdoc:name/text()
114114
return
115-
map { "result" := $functions }
115+
map { "result": $functions }
116116
};
117117

118118
declare

src/main/xar-resources/modules/view.xql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import module namespace site="http://exist-db.org/apps/site-utils";
88
declare option exist:serialize "method=html5 media-type=text/html";
99

1010
let $config := map {
11-
$templates:CONFIG_APP_ROOT := $config:app-root,
12-
$templates:CONFIG_STOP_ON_ERROR := true()
11+
$templates:CONFIG_APP_ROOT : $config:app-root,
12+
$templates:CONFIG_STOP_ON_ERROR : true()
1313
}
1414
let $resolve := function($func as xs:string, $arity as xs:int) {
1515
try {

0 commit comments

Comments
 (0)