FreeMarker
Apache FreeMarker is a free Java-based template engine, originally focusing on dynamic web page generation with MVC software architecture.[src] It can now generate text based on templates and changing data.[src] It has no dependency on servlets or HTTP or HTML.[src] It is often used for generating source code, configuration files or e-mails.[src]
Apache FreeMarker is a free Java-based template engine, originally focusing on dynamic web page generation with MVC software architecture.[src] It can now generate text based on templates and changing data.[src] It has no dependency on servlets or HTTP or HTML.[src] It is often used for generating source code, configuration files or e-mails.[src] Hello ${name}![src] You have the following messages: ${m.from}: ${m.body} processed by FreeMarker will produce something like: Hello Joe![src] You have the following messages: Tim: Please don't forget to bring the conference papers![src] Cindy: Can you give me a visit this afternoon?[src] Richard: Don't forget the papers this time![src] Variables like "name" and "messages" are coming from outside the template, and thus the template author has to deal with the presentation issues only.[src] The template remains the same regardless if these variables are coming from a database or from a cookie or calculated in whatever other ways.[src] Also the exact Java API (and hence the class) of the values can be hidden in FreeMarker using a technique called object wrapping.[src] For example, "messages" seems to be a list or array of JavaBeans that have "from" and "body" properties, but it might as well be something very different, and the template is not affected (as long as a proper object wrapper is used).[src] ==See also== JSP Apache Velocity Thymeleaf[src]
18 sentences · 18 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"FreeMarker." encyclopegia.org, 2026, https://encyclopegia.org/wiki/freemarker. Accessed 06 December 2026.
Chicago
"FreeMarker." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/freemarker.
APA
encyclopegia.org. (2026). FreeMarker. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/freemarker
Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON