freemarker

内容纲要

官网:https://freemarker.apache.org/
下载:https://freemarker.apache.org/freemarkerdownload.html
文档:https://freemarker.apache.org/docs/index.html
FreeMarker_2.3.23_Manual_zh_CN.zip

Apache FreeMarker™是一个模板引擎:一个基于模板和更改数据生成文本输出(HTML网页、电子邮件、配置文件、源代码等)的Java库。模板是用FreeMarker模板语言(FTL)编写的,这是一种简单的专门语言(不是像PHP那样成熟的编程语言)。通常使用通用编程语言(如Java)来准备数据(发出数据库查询,进行业务计算)。然后,Apache FreeMarker使用模板显示准备好的数据。在模板中,您关注的是如何表示数据,而在模板外,您关注的是要表示什么数据。

Apache FreeMarker™ is a template engine: a Java library to generate text output (HTML web pages, e-mails, configuration files, source code, etc.) based on templates and changing data. Templates are written in the FreeMarker Template Language (FTL), which is a simple, specialized language (not a full-blown programming language like PHP). Usually, a general-purpose programming language (like Java) is used to prepare the data (issue database queries, do business calculations). Then, Apache FreeMarker displays that prepared data using templates. In the template you are focusing on how to present the data, and outside the template you are focusing on what data to present.

Leave a Comment

您的电子邮箱地址不会被公开。 必填项已用*标注

close
arrow_upward