Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Thymeleaf templating option #43

Open
RaimondKempees opened this issue Feb 29, 2016 · 3 comments
Open

Create Thymeleaf templating option #43

RaimondKempees opened this issue Feb 29, 2016 · 3 comments

Comments

@RaimondKempees
Copy link
Member

No description provided.

@javamate
Copy link

Love to see this in the enhancement list! We are using this in our DD4T1.3 implementation and intend to use it as we move to DD4T2. Hooking up a Thymeleaf view resolver is trivial, but it doesn't support include or forward operations like JSP, so once you've delegated to the view you cannot loop back into the Spring web flow. You can leverage utility classes that are called in Thymeleaf to do any additional logic on your model (or do it in Thymeleaf itself, but I prefer to keep Java code in Java).

I'm curious what you have in mind for this enhancement. Seems to me that DD4T is flexible enough to allow for a Thymeleaf view implementation. Are you thinking of changes in the example site or in the spring-mvc-support or something else?

@quirijnslings
Copy link
Member

It looks interesting. If you cannot loop back to Spring MVC from a Thymeleaf view, you need to render the component presentations from the page controller, and hand the entire set of rendered CPs to the page view. Would that work with Thymeleaf?

@RaimondKempees
Copy link
Member Author

Something like that. I'm investigating it at the moment. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants