Ondrej Zizka [
https://community.jboss.org/people/ozizka] modified the document:
"Possible ThymeLeaf Integration"
To view the document, visit:
https://community.jboss.org/docs/DOC-48038
--------------------------------------------------------------
ThymeLeaf is a templating engine.
http://www.thymeleaf.org/documentation.html http://www.thymeleaf.org/documentation.html
h2. Possible integration points
h4. In CDI, even standalone:
*
http://www.thymeleaf.org/apidocs/thymeleaf/2.0.14/org/thymeleaf/context/I...
IContext - the map of values available for the template. Those could be resolved from
CDI.
*
http://www.thymeleaf.org/apidocs/thymeleaf/2.0.14/org/thymeleaf/messagere...
IMessageResolver - use CDI for loading messages.
h4. Additionally, in Application Server:
*
http://www.thymeleaf.org/apidocs/thymeleaf/2.0.14/org/thymeleaf/resourcer...
IResourceResolver - to load resources from deployments. ThymeLeaf's
ClassLoaderResourceResolver uses just
ClassLoaderUtils.getClassLoader(ClassLoaderResourceResolver.class).getResourceAsStream(resourceName);
*
http://www.thymeleaf.org/apidocs/thymeleaf/2.0.14/org/thymeleaf/cache/ICa...
ICacheManager - use InfiniSpan as cache.
--------------------------------------------------------------
Comment by going to Community
[
https://community.jboss.org/docs/DOC-48038]
Create a new document in JBoss AS 7 Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=102&a...]