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 th:replace as a synonym for th:substituteby #69

Closed
danielfernandez opened this issue Aug 29, 2012 · 2 comments
Closed

Create th:replace as a synonym for th:substituteby #69

danielfernandez opened this issue Aug 29, 2012 · 2 comments

Comments

@danielfernandez
Copy link
Member

Create a new attribute called th:replace as a complete synonym for th:substituteby.

The plan is to completely replace th:substituteby by th:replace in a couple of versions, so with 2.1 replaceshould be added to the documentation instead of every appearance of substituteby, and a mention to substituteby should appear stating that although having exactly the same effect, it is no longer the preferred option.

th:substituteby should NOT appear as deprecated in 2.1

@danielfernandez
Copy link
Member Author

@ultraq you are a native English speaker... what do you think of this? Do you feel th:replace is a better word than th:substituteby? Maybe we could just keep both, but only document th:replace in the future...

@ultraq
Copy link
Member

ultraq commented Jun 10, 2013

I think 'replace' is better than 'substituteby', simply because it's a single word like most of the other processors, and so feels more like a part of the processor family that's been created. All the other two-word processors are there to convey additional meaning and distinguish themselves from their single-word counterparts, eg: th:classappend and th:class, the 'append' part shows that it does more than the standard 'class' processor.

@ghost ghost assigned danielfernandez Dec 30, 2013
@danielfernandez danielfernandez modified the milestones: Thymeleaf 2.1, Thymeleaf 2.1.0 Dec 27, 2020
rwinch pushed a commit to rwinch/thymeleaf that referenced this issue Dec 4, 2021
Set the ApplicationContext to RedirectView to find the RequestDataValueProcessor
danielfernandez added a commit that referenced this issue Oct 10, 2022
AuthenticationAttrProcessor uses EscapedAttributeUtils
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

2 participants