Registry / utility / freemarker

freemarker

JSON →
library2.3.34javamavenunverified

FreeMarker is a template engine for generating text output (HTML, email, configuration files, etc.) based on templates and data models.

<dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker</artifactId> <version>2.3.34</version> </dependency>
INSTALL
IMPORT
SIG · FREEMARKER
F
freemarker
utilityjavav2.3.34
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Configuration
freemarker.template.Configuration

Configures FreeMarker and processes a template with a data model.

import freemarker.template.Configuration; import freemarker.template.Template; import java.util.HashMap; import java.util.Map; public class Example { public static void main(String[] args) throws Exception { Configuration cfg = new Configuration(Configuration.VERSION_2_3_34); cfg.setClassForTemplateLoading(Example.class, "/templates"); Template template = cfg.getTemplate("test.ftl"); Map<String, Object> data = new HashMap<>(); data.put("message", "Hello World"); template.process(data, System.out); } }
Debug
Known issues
gotchaFreeMarker 2.3.34 is the last version in the 2.3.x line; consider upgrading to 2.4.x for new features.
fix
Use version 2.4.0 or later for ongoing support.
affects: <=2.3.34
Upgrade
Version history
2.3.34latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
freemarker — mvn dependency:get freemarker · libregistry