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

give me some examples how to use zio-http with templates engine like thymeleaf or twirl #3157

Open
Tasselmi opened this issue Sep 21, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Tasselmi
Copy link

Is your feature request related to a problem? Please describe.
I want to migrate my play-framework app to zio-http, thare are lots of frontend code that written with html templates.

Describe the solution you'd like
support to integrate zio-http with thymeleaf and twirl.

Describe alternatives you've considered
Just don't know if there are alternatives

Additional context
I have lots of code written with jekyll(a static site generation engine) and play-framework + twirl , I want to make my sites dynamic rather than static.

@Tasselmi Tasselmi added the enhancement New feature or request label Sep 21, 2024
@987Nabil
Copy link
Contributor

for twirl, as long as it is compiling you just call the template like in play. The Html you get back can be stringyfied by calling toString. Wrap it in a body and send it.

The others probably work similar.

But I think a play migration module for zio http might be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants