GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

FreeMarker

Apache FreeMarker is a free Java-based template engine, originally focusing on dynamic web page generation with MVC software architecture. It can now generate text based on templates and changing data. It has no dependency on servlets or HTTP or HTML. It is often used for generating source code, configuration files or e-mails. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

Apache FreeMarker is a free Java-based template engine, originally focusing on dynamic web page generation with MVC software architecture. It can now generate text based on templates and changing data. It has no dependency on servlets or HTTP or HTML. It is often used for generating source code, configuration files or e-mails. Hello ${name}! You have the following messages: ${m.from}: ${m.body} processed by FreeMarker will produce something like: Hello Joe! You have the following messages: Tim: Please don't forget to bring the conference papers! Cindy: Can you give me a visit this afternoon? Richard: Don't forget the papers this time! Variables like "name" and "messages" are coming from outside the template, and thus the template author has to deal with the presentation issues only. The template remains the same regardless if these variables are coming from a database or from a cookie or calculated in whatever other ways. Also the exact Java API (and hence the class) of the values can be hidden in FreeMarker using a technique called object wrapping. 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). ==See also== JSP Apache Velocity Thymeleaf

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"FreeMarker". 1787944939. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1371848377

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·