-
Notifications
You must be signed in to change notification settings - Fork 113
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
Rename layout:decorator to layout:decorate #95
Comments
I'm thinking yes as then each of the processor names are verbs describing what is happening to the target:
|
So I've incorrectly repurposed the word "decorator" throughout the layout dialect, most problematically in the |
Done. Also added an alias processor that just logs a deprecation warning to maintain backwards compatibility with migrating templates. Same done for the title pattern token, with a warning emitted when |
…n deprecated Please use layout:decorate/data-layout-decorate instead to future-proof your code. See ultraq/thymeleaf-layout-dialect#95 for more information.
``` The layout:decorator/data-layout-decorator processor has been deprecated and will be removed in the next major version of the layout dialect. Please use layout:decorate/data-layout-decorate instead to future-proof your code. See ultraq/thymeleaf-layout-dialect#95 for more information. Fragment expression "layout" is being wrapped as a Thymeleaf 3 fragment expression (~{...}) for backwards compatibility purposes. This wrapping will be dropped in the next major version of the expression processor, so please rewrite as a Thymeleaf 3 fragment expression to future-proof your code. See thymeleaf/thymeleaf#451 for more information. ```
layout:title-pattern="$CONTENT_TITLE - $DECORATOR_TITLE" |
by change I found warnings in log. in total 3 warnings found [THYMELEAF][Test worker] Template Mode 'HTML5' is deprecated. Using Template Mode 'HTML' instead. [THYMELEAF][Test worker] Template Mode 'HTML5' is deprecated. Using Template Mode 'HTML' instead. Initializing Spring TestDispatcherServlet '' Initializing Servlet '' Completed initialization in 3 ms The layout:decorator/data-layout-decorator processor has been deprecated and will be removed in the next major version of the layout dialect. Please use layout:decorate/data-layout-decorate instead to future-proof your code. See ultraq/thymeleaf-layout-dialect#95 for more information. Fragment expression "layouts/main" is being wrapped as a Thymeleaf 3 fragment expression (~{...}) for backwards compatibility purposes. This wrapping will be dropped in the next major version of the expression processor, so please rewrite as a Thymeleaf 3 fragment expression to future-proof your code. See thymeleaf/thymeleaf#451 for more information. ## ultraq/thymeleaf-layout-dialect#95 , changed layout:decorator to layout:decorate ## use template mode HTML instead of HTML5 ## swtiched back to from th:with="isLdap which was removed with spring update
by change I found warnings in log. in total 3 warnings found [THYMELEAF][Test worker] Template Mode 'HTML5' is deprecated. Using Template Mode 'HTML' instead. [THYMELEAF][Test worker] Template Mode 'HTML5' is deprecated. Using Template Mode 'HTML' instead. Initializing Spring TestDispatcherServlet '' Initializing Servlet '' Completed initialization in 3 ms The layout:decorator/data-layout-decorator processor has been deprecated and will be removed in the next major version of the layout dialect. Please use layout:decorate/data-layout-decorate instead to future-proof your code. See ultraq/thymeleaf-layout-dialect#95 for more information. Fragment expression "layouts/main" is being wrapped as a Thymeleaf 3 fragment expression (~{...}) for backwards compatibility purposes. This wrapping will be dropped in the next major version of the expression processor, so please rewrite as a Thymeleaf 3 fragment expression to future-proof your code. See thymeleaf/thymeleaf#451 for more information. ## ultraq/thymeleaf-layout-dialect#95 , changed layout:decorator to layout:decorate ## use template mode HTML instead of HTML5 ## swtiched back to from th:with="isLdap which was removed with spring update
If we're following the decorator pattern, then what is specified in the
layout:decorator
attribute is the template to be decorated, not the templating doing the decorating.So would it make more sense to rename the processor to
layout:decorate
?The text was updated successfully, but these errors were encountered: