Skip to content

Commit cc68817

Browse files
authored
Merge pull request #621 from wolfgangmm/master
Review documentation on HTML templating
2 parents ccf2ded + 4ab8c0b commit cc68817

File tree

5 files changed

+240
-104
lines changed

5 files changed

+240
-104
lines changed

src/main/xar-resources/data/templating/listings/listing-12.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@
55
:)
66
xquery version "3.0";
77

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";
911

1012
(:
1113
: The following modules provide functions which will be called by the
1214
: templating framework.
1315
:)
1416
import module namespace app="http://my.domain/myapp" at "app.xql";
1517

16-
declare option exist:serialize "method=html5 media-type=text/html";
18+
declare option output:method "html";
19+
declare option output:html-version "5";
1720

1821
(:
1922
: We have to provide a lookup function to templates:apply to help it
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<dependency package="http://exist-db.org/html-templating" semver-min="1.0.0"/>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import module namespace templates="http://exist-db.org/xquery/html-templating";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import module namespace lib="http://exist-db.org/xquery/html-templating/lib";

0 commit comments

Comments
 (0)