Drop in Handlebars.java Renderer for BrightSpot content
- Maven 3+
- Java 1.7
Clone this repo
Run mvn clean package cargo:run
Naviate to http://localhost:8080/this to see the results.
It pulls the mainContent
attribute out of the request and renders fields from it in a Handlebars template:
Something Really Exciting
This is <b>even</b> better
To make the content attributes visible to Handlebars you need to provide getters in your content class e.g.
private String headline;
public String getHeadline() {
return headline;
}
To see the content navigate to it in the cms admin interface
Login for the cms with username/password: admin/admin.
Test with images- Test with partials
Load template from file systemUse helpers