Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

FreeMarker

< >

FreeMarker is an open source template language created in 2000.

#964on PLDB 24Years Old 6kRepos
Wikipedia

FreeMarker is a free Java-based template engine, originally focusing on dynamic web page generation with MVC software architecture. However, it is a general purpose template engine, with no dependency on servlets or HTTP or HTML, and is thus often used for generating source code, configuration files or e-mails.. Read more on Wikipedia...


Example from Linguist:
<#ftl strip_text=true /> <#macro page title> <!doctype html> <html lang="${.lang}"> <head> <title>${title}</title> <@metaTags /> </head> <body> <#nested /> <@footer /> </body> </html> </#macro> <#--- Default meta tags --> <#macro metaTags> <#compress> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="format-detection" content="telephone=no"> </#compress> </#macro> <#macro footer> <p>This page is using FreeMarker v${.version}</p> </#macro>
Example from Wikipedia:
<html> <body> <p>Hello Joe! You have the following messages: <p><b>Tim:</b> Please don't forget to bring the conference papers!</p> <p><b>Cindy:</b> Can you give me a visit this afternoon?</p> <p><b>Richard:</b> Don't forget the papers this time!</p> </p> </body> </html>

- Build the next great programming language Add Issues About Search Keywords Livestreams Labs Resources Acknowledgements

Built with Scroll v154.3.0