Top "Freemarker" questions

FreeMarker is a Java based template engine, a generic tool to generate text output (anything from HTML to autogenerated source code) based on templates.

How do I call java methods on an object from a FreeMarker template?

Is it possible to call a method that takes parameters from a Freemarker template? I have an object model that …

java freemarker
Velocity vs. FreeMarker

Velocity or FreeMarker? They look pretty much the same, even the syntax? What to use? Or when to use what?

java velocity template-engine freemarker
if-else in FreeMarker template

FreeMarker templates support an if-statement with the following syntax <#if hot> It's hot. </#if> I've looked …

java template-engine freemarker
How to check for null List in freemarker

Say my java code has List<String> listS =null and i pass this to my template file. Now …

java null freemarker
Freemarker assign list length to local variable

The following freemarker code causes an exception <#assign i= it.getList().size()> <#list it.getList() as elem&…

exception variable-assignment freemarker
Compare two strings in freemarker

I am using free marker and i am returning response from application as string i need to compare the response …

freemarker
Add Values to a Sequence?

I've created a FreeMarker sequence in my template: <#assign x = ["red", 16, "blue", "cyan"]> How do I add additional …

freemarker
Freemarker Eclipse Plug-In

How can I install Freemarker Plug-In in eclipse? I googled it and found this site https://sites.google.com/site/…

eclipse freemarker
Use ternary operator in freemarker?

I just want to do something like this: <a href="${ a? 'a.htm' : 'b.htm'}">

java freemarker
Setting freemarker template from classpath

I have a web application that I need to manually obtain a Freemarker template - the template is obtained via …

freemarker