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

Standard mapping and fallback templates
MatchesMedia typePrincipal XSLT moduleFallback XSLT Module
*.htmltext/html/WEB-INF/xslt/html/[group].xslnone
*.jsonapplication/json/WEB-INF/xslt/json/[group].xslreturns {}
*.xmlapplication/xml/WEB-INF/xslt/xml/[group].xslreturns copy of XML
*.srcapplication/xmlno transformationnone

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