What is FreeMarker?
来源:互联网 发布:犀牛软件知识 编辑:程序博客网 时间:2024/05/18 03:40
FreeMarker is a "template engine"; a generic tool to generate text output (anything from HTML to autogenerated source code) based on templates. It's a Java package, a class library for Java programmers. It's not an application for end-users in itself, but something that programmers can embed into their products.
FreeMarker is designed to be practical for the generation of HTML Web pages, particularly by servlet-based applications following the MVC (Model View Controller) pattern. The idea behind using the MVC pattern for dynamic Web pages is that you separate the designers (HTML authors) from the programmers. Everybody works on what they are good at. Designers can change the appearance of a page without programmers having to change or recompile code, because the application logic (Java programs) and page design (FreeMarker templates) are separated. Templates do not become polluted with complex program fragments. This separation is useful even for projects where the programmer and the HMTL page author is the same person, since it helps to keep the application clear and easily maintainable.
Although FreeMarker has some programming capabilities, it is not a full-blown programming language like PHP. Instead, Java programs prepare the data to be displayed (like issue SQL queries), and FreeMarker just generates textual pages that display the prepared data using templates.
FreeMarker is not a Web application framework. It is suitable as a component in a Web application framework, but the FreeMarker engine itself knows nothing about HTTP or servlets. It simply generates text. As such, it is perfectly usable in non-web application environments as well. Note, however, that we provide out-of-the-box solutions for using FreeMarker as the view component of Model 2 frameworks (e.g. Struts), which also let you use JSP taglibs in the templates.
FreeMarker is Free, with BSD-style license. It is OSI Certified Open Source Software. OSI Certified is a certification mark of the Open Source Initiative.
- What is FreeMarker?
- What is FreeMarker?
- What is FreeMarker?
- What is Apache FreeMarker?
- What is what ?!
- what is what?
- What's FreeMarker
- What is portal? & What is portlet?
- what is game? what is good game?
- What Is 'SSL'? What Is 'SSH'?
- WHAT IS C#
- What is System Administration?
- What is EDI?
- What Is Wiki
- What is Struts Resume?
- what is blog??
- What is AspectJ
- what is grid ?
- weblogic中两种不同的运行wlst脚本的方式
- Oracle日期与时间
- 重庆市电信通信简史
- 天乙社区8.0.0Beta4发布
- jsp中的中文字符一个小东西
- What is FreeMarker?
- 深入biztalk中sql adapter
- 基于Web Server的无线视频终端在线配置方案与实现
- JSTL介绍
- 不错的blog
- COOKIE用法大全
- Windows自带的“QQ”
- 保证程序只运行一个实例问题总结
- 打印部分页面时,预览的解决方案。