Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download


< >

FreeMarker is an open source template language created in 2000.

#881on PLDB 24Years Old 6kRepos

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>

View source

- Build the next great programming language About Resources Acknowledgements Part of the World Wide Scroll