Home  >  Article  >  Java  >  Java template engine Freemarker

Java template engine Freemarker

高洛峰
高洛峰Original
2017-01-05 13:09:481316browse

FreeMarker is a template engine, a general tool for generating text output based on templates, written in pure Java

FreeMarker is designed to generate HTML Web pages, especially applications based on the MVC pattern

Although FreeMarker has some programming capabilities, the data to be displayed is usually prepared by the Java program, the page is generated by FreeMarker, and the prepared data is displayed through the template (as shown below)

Java template engine Freemarker

FreeMarker is not a Web application framework, but is suitable as a component of the Web application framework

FreeMarker has nothing to do with containers, because it does not know HTTP or Servlet; FreeMarker can also be applied to non-Web application environments

For more articles related to Java template engine Freemarker, please pay attention to the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn