File tree Expand file tree Collapse file tree 5 files changed +240
-104
lines changed
src/main/xar-resources/data/templating Expand file tree Collapse file tree 5 files changed +240
-104
lines changed Original file line number Diff line number Diff line change 5
5
:)
6
6
xquery version "3.0";
7
7
8
- import module namespace templates="http://exist-db.org/xquery/templates" at "templates.xql";
8
+ declare namespace output="http://www.w3.org/2010/xslt-xquery-serialization";
9
+
10
+ import module namespace templates="http://exist-db.org/xquery/html-templating";
9
11
10
12
(:
11
13
: The following modules provide functions which will be called by the
12
14
: templating framework.
13
15
:)
14
16
import module namespace app="http://my.domain/myapp" at "app.xql";
15
17
16
- declare option exist:serialize "method=html5 media-type=text/html";
18
+ declare option output:method "html";
19
+ declare option output:html-version "5";
17
20
18
21
(:
19
22
: We have to provide a lookup function to templates:apply to help it
Original file line number Diff line number Diff line change
1
+ <dependency package =" http://exist-db.org/html-templating" semver-min =" 1.0.0" />
Original file line number Diff line number Diff line change
1
+ import module namespace templates="http://exist-db.org/xquery/html-templating";
Original file line number Diff line number Diff line change
1
+ import module namespace lib="http://exist-db.org/xquery/html-templating/lib";
You can’t perform that action at this time.
0 commit comments