Skip to content

wearefriday/brightspot-handlebars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrightSpot + Handlebars POC

Drop in Handlebars.java Renderer for BrightSpot content

Dependencies

  • Maven 3+
  • Java 1.7

Installation

Clone this repo

Usage

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

Content Classes

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;
}

Content Editing

To see the content navigate to it in the cms admin interface

Login for the cms with username/password: admin/admin.

Next Steps

  • Test with images
  • Test with partials
  • Load template from file system
  • Use helpers

About

Drop in Handlebars.java replacement for JSP in Brightspot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages