Introduction to the Thymeleaf template engine

Source: Internet
Author: User

One: thymeleaf Study notes---http://www.blogjava.net/bjwulin/articles/395185.html

Thymeleaf is a natural engine that supports HTML prototyping, which adds extra attributes to the HTML tag to show how the template + data is presented, since the browser interprets HTML and ignores undefined label attributes, so the thymeleaf template can run statically.

Since Thymeleaf is parsed in the memory cache, the parsed template is tree-based DOM node trees, so thymeleaf is suitable for general web pages and is not suitable for data-based XML.

Two:

HTML5 template engine Thymeleaf

Http://www.oschina.net/p/thymeleaf

Thymeleaf is a xml/xhtml/html5 template engine that can be used for application development in Web and non-web environments . It is an open source Java library , created by Daniel Fernández, based on the Apache License 2.0 license , and is the author of the Java Cryptographic Library Jasypt.

Thymeleaf provides an optional module for integrating Spring MVC , where you can use Thymeleaf to completely replace JSP, or other template engines such as velocity, freemarker, and so on.

The main goal of Thymeleaf is to provide a well-formed template creation that can be properly displayed by the browser, so it can also be used as a static model.

You can use it to create validated XML and HTML templates. Rather than writing logic or code, developers simply add tag attributes to the template.

Next, these tag properties perform pre-established logic on the DOM (Document Object model).

Introduction to the Thymeleaf template engine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.