[Take you from scratch to develop a reading site] Chapter 5, front-end template introduction, chapter 5 from scratch

Source: Internet
Author: User

[Take you from scratch to develop a reading site] Chapter 5, front-end template introduction, chapter 5 from scratch

[This project is open-source at: https://gitee.com/input4#/littlerb/tree/v1/]

FreeMarker

The freeMarker template engine is explained in the first part of the official website as follows:

Apache FreeMarker is a template engine: a Java library that generates text output (HTML webpage, email, configuration file, source code, etc.) based on templates and changed data. The template is written in FreeMarker template language (FTL). It is a simple professional language (not a comprehensive programming language like PHP ). Your intention is to prepare data for display in real programming languages, such as querying the problem database and performing business computing, and then the template displays the prepared data. In the template, you will focus on how to present data, and outside the template, you will focus on the data to be displayed.

 

For more information about how to use freeMarker, you can search for related tutorials on the Internet. This blog series will only explain the used freemarker templates.

The following describes how freemarker is displayed on the homepage of the reading site.

1 <! DOCTYPE html> 2 

 

$ {Vo. getId ()} value from the background object

Related Article

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.