handlebars.java
Handlebars.java is a Java port of handlebars. It provides the power necessary to let you build semantic templates effectively with no frustration.
Templates
Page Layouts and Content Layouts can now be configured as handlebars templates. For page layouts this can be done by selecting Handlebars Page from the Layout processor dropdown. For content layouts, select the Handlebars Content from the Content layout processor dropdown.
Helpers
This document outlines the 45+ handlebars helpers that we've made available to better allow interaction with Terminalfour. These are in addition to the many core handlebars.java helpers (apidocs).
The handlebars helpers API here is split into multiple groupings, depending on their function. Each of those groupings is outlined below in the packages table.
Package | Description |
---|---|
com.terminalfour.publish.handlebars.helper |
The main package for handlebars just contains some small utility classes and functions.
|
com.terminalfour.publish.handlebars.helper.channel | |
com.terminalfour.publish.handlebars.helper.content |
The Content package contain a number of helpers that can be used to output general information about Content Items,
such as their
Id or publish date . |
com.terminalfour.publish.handlebars.helper.content.element | |
com.terminalfour.publish.handlebars.helper.content.element.list |
The List package contains helpers relating to List Content Elements, that enable the
developer to output list selections in a simple and configurable manner.
|
com.terminalfour.publish.handlebars.helper.content.layout |
The Layout package contains helpers relating to Content Layouts, for instance the
embed handlebars helper. |
com.terminalfour.publish.handlebars.helper.edit |
The Edit package contains a few helpers to create links back into Terminalfour Site Manager,
to access
Direct Edit ,
edit the Section , etc. |
com.terminalfour.publish.handlebars.helper.form |
The Form package contains helpers relating to Forms and specifically the
form helper. |
com.terminalfour.publish.handlebars.helper.language | |
com.terminalfour.publish.handlebars.helper.list |
The List package contains helpers to allow for the output of lists, including the
listById helper , which allows Lists to be published
outside of the context of Content Items. |
com.terminalfour.publish.handlebars.helper.media |
The Media package contains a single helper, the
media helper , which allows Media to be published. |
com.terminalfour.publish.handlebars.helper.navigation |
The Navigation package contains the
Navigation helper ,
which provides the ability to publish Navigation Objects. |
com.terminalfour.publish.handlebars.helper.page |
The Page package contains some general handlebars helpers relating to published pages, such as the
preview helper , which
allows the developer to target handlebars blocks for preview only. |
com.terminalfour.publish.handlebars.helper.page.meta |
The Meta package contains the
meta helper ,
which can be used to publish predefined Meta tags taking to current Section into consideration. |
com.terminalfour.publish.handlebars.helper.section | |
com.terminalfour.publish.handlebars.helper.section.meta |
The Section Meta package contains handlebars helpers that allow a web developer to target Section Meta Content
information and Content Layouts without the need for any Navigation Objects.
|
com.terminalfour.publish.handlebars.helper.url | |
com.terminalfour.publish.handlebars.helper.utility |
The utility package contain some utility handlebars helpers that could be useful in the
context of preview or publish.
|