Skip to content

Migrate JMustache reactive view support in Boot master #8648

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

Closed
bclozel opened this issue Mar 16, 2017 · 5 comments
Closed

Migrate JMustache reactive view support in Boot master #8648

bclozel opened this issue Mar 16, 2017 · 5 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@bclozel
Copy link
Member

bclozel commented Mar 16, 2017

The Mixit application is currently using a reactive view infrastructure implementation for JMustache, see those 3 classes (how tiny!).

Given we've got the same support included in Boot for MVC and the many requests @sdeleuze is getting for that to be eternalized in some project, I'd be in favor of migrating those in Boot proper.

@bclozel bclozel added for: team-attention An issue we'd like other members of the team to review priority: normal type: enhancement A general enhancement labels Mar 16, 2017
@bclozel bclozel self-assigned this Mar 16, 2017
@philwebb philwebb added this to the 2.0.0.M1 milestone Mar 16, 2017
@philwebb
Copy link
Member

+1

@sdeleuze
Copy link
Contributor

Open questions to be discussed:

@philwebb
Copy link
Member

@sdeleuze Seem sensible, any reason we wouldn't want it?

@sdeleuze
Copy link
Contributor

sdeleuze commented Mar 20, 2017

Well, I am strongly in favor of integrating a way to add customMustache.Lambda and provide by default the i18n one.

But I would like to see if HandlerFilterFunction could be used as a functional equivalent to @ControllerAdvice for integrating custom Mustache.Lambda like shown on https://spring.io/blog/2016/11/21/the-joy-of-mustache-server-side-templates-for-the-jvm in order to see if modelCustomizer is required or not.

I will check that with @poutsma and send you a feedback.

@sdeleuze
Copy link
Contributor

Ok so after some experiments and work with @poutsma I confirm that we don't need this modelCustomizer. In latest Spring Framework 5 snapshots, HandlerFilterFunction now can be used to customize globally the model attributes.

As a consequence, I have removed it from https://github.com/mixitconf/mixit/tree/master/src/main/java/org/springframework/web/reactive/result/view/mustache and you don't need it in Spring Boot as well.

I still think providing by default an i18n Mustache.Lambda is a good idea, so my proposal would be to add it by default (maybe in Spring MVC alternative as well).

@bclozel bclozel removed the for: team-attention An issue we'd like other members of the team to review label Mar 22, 2017
bclozel added a commit that referenced this issue Jul 7, 2017
This commit adds new reference documentation sections about WebFlux
support in Spring Boot:

* Support for multiple HTTP servers (gh-8403)
* `CodecCustomizer` and JSON codecs (gh-8897, gh-9166)
* `WebClient.Builder` auto-configuration (gh-9522)
* Tests with `@WebFluxTest` (gh-8401)
* `WebTestClient` auto-configuration (gh-8399)
* Support for Thymeleafi and Mustache templating (gh-8124, gh-8648)
* Choose another HTTP server with WebFlux (closes gh-9690)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants