Comments (5)
When this is done, org.thymeleaf.util.TemplateModeUtil
should be modified. See also this: #167
from thymeleaf.
As there are 3 possible values for the th:inline processor, maybe there should be 3 "text template modes", TEXT, JAVASCRIPT, DART.
from thymeleaf.
Given 3.0 will completely revamp the parsing and DOM system, it will be a much more reasonable point to modify the template mode system than 2.1. So this ticket has been moved to 3.0.
In fact, given the flexibility given by the new parser to be used in 3.0 (attoparser), we should study the possibility to establish only two template modes:
- Markup
- Text (which should not only be allowed to use on its own, but also enabled when
th:inline="text"
)
Note 1: Would Markup be enough for HTML and XML? if not... should we drop the XML support altogether?
Note 2: Processors should be made available for either Markup or Text, or maybe both. For example, all HTML-attribute based thymeleaf attributes like th:src
, th:ref
, etc. would make no sense in Text. But th:each
would.
Note 3: Syntax for Text mode should be well integrated with (or be the same as) the syntax finally developed for #68 and maybe also #47.
from thymeleaf.
Developed as a part of the new Thymeleaf 3.0 architecture and template modes. See #391 and #395
from thymeleaf.
Already in 3.0.0-SNAPSHOT
from thymeleaf.
Related Issues (20)
- Restricted types no longer usable with th:with in 3.1.2 HOT 2
- Unable to select direct child (using /) HOT 1
- Thymeleaf generated text in TEXT mode replaces CRLF with LF?
- Outputting a JS array outside th:inline script tag HOT 4
- Block to add attributes to included fragments HOT 1
- Do you support CSS3 styles? Like flexbox layout HOT 1
- How to prevent SSTI injection when using hypoleaf in inheriting DispatcherServlet?
- [BUG] using th:field does not work in th:each HOT 1
- GraalVM potential missing reachability metadata
- th:replace by POST response view HOT 1
- BUG: problem with passing Number and String data type to javascript function in thymeleaf looping th:each HOT 3
- Error "Cannot build an application for a request which servlet context does not match with the application that it is being built for." HOT 4
- Cannot use java.util.Currency in expressions
- Migration issue Thymeleaf 3.0.10RELEASE to 3.1.2RELEASE
- when using java 9 modules it doesn't find the template resolver
- Any solution for BDSA-2023-1804? HOT 3
- HTMX integration section in Thymeleaf documentation
- Request for posting of Maven signing key(s) HOT 1
- Replace Variables with issue as empty String HOT 1
- IPostProcessorDialect implementation to minify/remove comments from output html HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thymeleaf.