FreeMarker is an actively used programming language created in 2000. 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...

19Years Old 20Users 0Jobs

Example code 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 code 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>

Trending Repos

repo stars description

Last updated October 14th, 2019