Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SADE
SADE
Commits
debe62e3
Commit
debe62e3
authored
Jun 29, 2017
by
Mathias Goebel
🎠
Browse files
html:head from module config
parent
f41bd6a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
debe62e3
...
...
@@ -18,3 +18,5 @@ dist-utils/antbuild/lib/
.DS_STORE
=======
build/*
git.branches
modules/config/config.xqm
View file @
debe62e3
...
...
@@ -13,10 +13,10 @@ declare namespace templates="http://exist-db.org/xquery/templates";
declare namespace repo="http://exist-db.org/xquery/repo";
declare namespace expkg="http://expath.org/ns/pkg";
(:
(:
Determine the application root collection from the current module load path.
:)
declare variable $config:app-root :=
declare variable $config:app-root :=
let $rawPath := system:get-module-load-path()
let $modulePath :=
(: strip the xmldb: part :)
...
...
@@ -142,4 +142,15 @@ declare function config:list-modules() {
(:~ lists all existing modules (i.e. present in the modules-collection) :)
declare function config:list-projects() as xs:string+ {
xmldb:get-child-collections($config-params:projects-dir)
};
\ No newline at end of file
};
(:~
: STATUS: UNCLEAR! COMES FROM OLDE SADE! -- Returns the scripts and links
: required by the modules as configured in the project-config either put code
: directly into `<container key="html-head">` or if a module is mentioned in
: 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']
return $head/*
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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