Kickstart
Kickstart is a simple library that can be included in a Berlioz app to define the standard mapping and default fallback templates in a Berlioz application.
Berlioz kickstart removes the need to configure Berlioz in the Web descriptor by:
- automatically mapping the extensions .html, .xml, .json and .src to Berlioz;
- providing fallback templates for XML and JSON;
- redirecting errors to the Berlioz error handler.
Standard mapping
Matches | Media type | Principal XSLT module | Fallback XSLT Module |
---|---|---|---|
*.html | text/html | /WEB-INF/xslt/html/[group].xsl | none |
*.json | application/json | /WEB-INF/xslt/json/[group].xsl | returns {} |
*.xml | application/xml | /WEB-INF/xslt/xml/[group].xsl | returns copy of XML |
*.src | application/xml | no transformation | none |
See standard mapping for more details.
Source
Kickstart is available on Github at
https://github.com/pageseeder/berlioz-kickstart
Usage
Kickstart is available on bintray and has the following Maven coordinates:
<dependency> <groupId>org.pageseeder.berlioz</groupId> <artifactId>pso-berlioz-kickstart</artifactId> <version>0.2.0</version> </dependency>
Gradle
org.pageseeder.berlioz:pso-berlioz-kickstart:0.2.0
Ivy
<dependency org="org.pageseeder.berlioz" name="pso-berlioz-kickstart" rev="0.2.0"/>
Created on , last edited on