-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Improve FreeMarker macro support in spring-webflux #23105
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
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Comments
@rstoyanchev, I would appreciate your input on this issue before I begin working on it. |
Sounds reasonable. |
sbrannen
added a commit
that referenced
this issue
Jun 12, 2019
sbrannen
added a commit
that referenced
this issue
Jun 12, 2019
Unfortunately this has broken a test in Spring Boot:
I think the |
Looks good from a glance, I'm just trying to rerun the tests. I'll report back if there's still any problems. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Overview
This issue is a followup to gh-23002.
The documentation for
spring.ftl
inspring-webflux
states the following.Although this technically works, it is not as user-friendly as the analogous support in
spring-webmvc
. Specifically,AbstractTemplateView
(inspring-webmvc
) provides a dedicatedexposeSpringMacroHelpers
flag for automatically exposing theRequestContext
as a model attribute for consumption in FreeMarker templates. Since this boolean flag defaults totrue
, users do not have to configure anything special inFreeMarkerView
to use all supported macros.In contrast, users of
FreeMarkerView
inspring-webflux
cannot use all supported macros unless they explicitly set therequestContextAttribute
property of theFreeMarkerView
to"springMacroRequestContext"
.I think this is cumbersome and should be improved.
Deliverables
exposeSpringMacroHelpers
flag in template-based views inspring-webflux
analogous to the support inspring-webmvc
.The text was updated successfully, but these errors were encountered: