Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

FreeMarker

FreeMarker - Template language

< >

FreeMarker is a template language created in 2000.

#801on PLDB 23Years Old 375Users
0Books 0Papers 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>
omega.html 路 freemarker.html 路 qalb.html

View source

- Build the next great programming language Search Day 213 About Blog Acknowledgements Traffic Traffic Today GitHub feedback@pldb.com