Goals
- Support seamless binding of pojo types to freemarker templates for rendering to HTML
Background and strategic fit
Freemarker is a powerful engine for rendering java objects as HTML. Juneau's HTML5 DTOs and related packages allow Juneau developers to implement java code for specialized HTML rendering of any java pojo, but there are limitations to this approach that this design seeks to address.
Assumptions
- Freemarker is a logical choice when implementing serialization of an object or object tree into an HtmlElement.
- Generating an HtmlElement from Freemarker is simpler and more portable that doing the same via java code using HTML5 DTOs.
- Binding the resulting HtmlElement produced by evaluating Freemarker template(s) allows validation of the result vis-a-vis the HTML5 spec.
- Choice of how to present (View layer) an object tree should be entirely disconnected from implementation of the object class (Model layer)
Requirements
# | Title | User Story | Importance | Notes |
---|---|---|---|---|
1 | ||||
2 |
User interaction and design
Questions
Below is a list of questions to be addressed as a result of this requirements document:
Question | Outcome |
---|---|