Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
a4907618
Commit
a4907618
authored
Aug 27, 2018
by
Mathias Goebel
Browse files
more context
parent
35a1ca1c
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
modules/config/config.xqm
View file @
a4907618
...
...
@@ -95,7 +95,7 @@ return
then $return
else
let $doc := doc( $config-params:projects-dir || $config:project || "/config.xml" )
let $map := map:new(for $param in $doc/config/*[@key] return map:entry(string($param/@key), string($param)))
let $map := map:new(for $param in $doc/config/*[
./
@key] return map:entry(string($param/@key), string($param)))
return
switch ($key)
case "data-dir" return $config-params:projects-dir || $config:project || "/" || $map($key)
...
...
@@ -150,6 +150,6 @@ declare function config:list-projects() as xs:string+ {
: the config, its config is checked for <container key="html-head" >
:)
declare function config:html-head($node as node(), $model as map(*)) {
let $head := $model("config")//container[@key='html-head']
let $head := $model("config")//container[
./
@key='html-head']
return $head/*
};
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment