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 to check if a variable exists in a FreeMarker template?

I have a Freemarker template which contains a bunch of placeholders for which values are supplied when the template is …

java templates freemarker
Handling null values in Freemarker

How to handle null values in Freemarker? I get some exceptions in the template when null values are present in …

freemarker
What are FTL files

I am new to a project and have to learn it inside out. I see a lot of files with …

java freemarker
A url resource that is a dot (%2E)

I have a resource that is a . This means my url looks like this: http://myapp/index/. And i need …

url encoding freemarker restlet
Freemarker iterating over hashmap keys

Freemarker has two collection datatypes, lists and hashmaps Is there a way to iterate over hashmap keys just as we …

java freemarker
Difference between ?? , has_content , if_exists in freemarker

what is the difference between the following in freemarker? ! has_content ?? if_exists I used ?? instead of has_content & …

freemarker
Passing a List of Objects to Freemarker and then Looping

I've been acquainting myself with FreeMarker, a template engine for Java. I got to the point where I am able …

java servlets freemarker
Freemarker and hashmap. How do I get key-value

I have a hash map as below HashMap<String, String> map = new HashMap<String, String>(); map.…

java html freemarker
IntelliJ not recognizing a particular file correctly, instead its stuck as a text file

There is a freemarker file (ftl) in my IntelliJ project that is incorrectly recognized as a text file. There are …

java intellij-idea freemarker file-type
How to Convert a string to number in freemarker template

I want to convert a string to number in freemarker. I want to put some conditional check based on the …

freemarker