Templating
When compared to the Servlet API, the Restlet API doesn't have a sister API like Java Server Pages (JSP). Instead we made the design choice to be equally open to all presentation technologies. This openess is materialized in the Representation class which is used for result entities.
More concretely, we provide several integrations with the two popular template engines : FreeMarker and Apache Velocity. In addition, integration with Facelets has been achieved by a third party and it should be very easy to support any other reusable template technology.
The design idea is to use a TemplateRepresentation that will combine at generation time a data model with a template document.


There are no comments.