FreeMarker Manual freemarker.org
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.
Updated 06 Jul 2009 12:00 UTC
Based on 17 user ratings.
Click to rate this project.
Although Velocity is a nice template engine, I do prefer Freemarker: its macro's, string functions (upper/lowercase, html-escaping) and formatting routines (dates/numbers) come in very handy in real life applications. XML-handling isn't always as straight-forward, though.
Performance is also very good and last but not least, documentation is excellent.
Apache Taglibs Apache Commons EL
jTDS cglib ehcache
Apache Commons Codec
FreeTDS Jikes WebWork
Project Cost |
|
|---|---|
| This calculator estimates how much it would cost to hire a team to write this project from scratch. More » | |
| Include | |
| Codebase | 96,040 |
| Effort (est.) | 23 Person Years |
| Avg. Salary | $ year |
| $ 1,284,753 | |