Commit debe62e3 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

html:head from module config

parent f41bd6a6
......@@ -18,3 +18,5 @@ dist-utils/antbuild/lib/
.DS_STORE
=======
build/*
git.branches
......@@ -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/*
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment