Code Monkey home page Code Monkey logo

Comments (5)

danielfernandez avatar danielfernandez commented on May 20, 2024

When this is done, org.thymeleaf.util.TemplateModeUtil should be modified. See also this: #167

from thymeleaf.

jmiguelsamper avatar jmiguelsamper commented on May 20, 2024

As there are 3 possible values for the th:inline processor, maybe there should be 3 "text template modes", TEXT, JAVASCRIPT, DART.

from thymeleaf.

danielfernandez avatar danielfernandez commented on May 20, 2024

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.

danielfernandez avatar danielfernandez commented on May 20, 2024

Developed as a part of the new Thymeleaf 3.0 architecture and template modes. See #391 and #395

from thymeleaf.

danielfernandez avatar danielfernandez commented on May 20, 2024

Already in 3.0.0-SNAPSHOT

from thymeleaf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.