Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
odd-serializer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
SADE
odd-serializer
Merge requests
!1
Initial commit as separate eXist-db app
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Initial commit as separate eXist-db app
feature/eXist-app
into
develop
Overview
0
Commits
1
Pipelines
0
Changes
32
Merged
Michelle Weidling
requested to merge
feature/eXist-app
into
develop
6 years ago
Overview
0
Commits
1
Pipelines
0
Changes
32
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
7a2aedd0
1 commit,
6 years ago
32 files
+
374
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
32
Search (e.g. *.vue) (Ctrl+P)
modules/app.xql
0 → 100644
+
20
−
0
Options
xquery version "3.1";
module namespace app="http://bdn-edition.de/ns/odd-serializer/templates";
import module namespace templates="http://exist-db.org/xquery/templates" ;
import module namespace config="http://bdn-edition.de/ns/odd-serializer/config" at "config.xqm";
(:~
: This is a sample templating function. It will be called by the templating module if
: it encounters an HTML element with an attribute: data-template="app:test" or class="app:test" (deprecated).
: The function has to take 2 default parameters. Additional parameters are automatically mapped to
: any matching request or function parameter.
:
: @param $node the HTML node with the attribute which triggered this call
: @param $model a map containing arbitrary data - used to pass information between template calls
:)
declare function app:test($node as node(), $model as map(*)) {
<p>Dummy template output generated by function app:test at {current-dateTime()}. The templating
function was triggered by the data-template attribute <code>data-template="app:test"</code>.</p>
};
\ No newline at end of file
Loading