kiegroup/incubator-freemarker

Name: incubator-freemarker

Owner: KIE (Drools, OptaPlanner and jBPM)

Description: Mirror of Apache Freemarker (Incubating)

Forked from: apache/incubator-freemarker

Created: 2017-08-23 16:28:25.0

Updated: 2017-08-23 16:28:29.0

Pushed: 2017-08-23 16:31:46.0

Homepage: null

Size: 14856

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Apache FreeMarker {version}

Build Status

For the latest version or to report bugs visit: http://freemarker.org/

DISCLAIMER

Apache FreeMarker is an effort undergoing incubation at The Apache Software Foundation (ASF). Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

What is Apache FreeMarker?

FreeMarker is a “template engine”; a generic tool to generate text output (anything from HTML to auto generated source code) based on templates. It's a Java package, a class library for Java programmers. It's not an application for end-users in itself, but something that programmers can embed into their products. FreeMarker is designed to be practical for the generation of HTML Web pages, particularly by servlet-based applications following the MVC (Model View Controller) pattern.

Licensing

FreeMarker is licensed under the Apache License, Version 2.0.

See the LICENSE file for more details!

Documentation

Online: http://freemarker.org/docs/

Offline: The full documentation is available in the binary distribution in the documentation/index.html directory.

Installing

If you are using Maven, just add this dependency:

--
tention: Be sure nothing pulls in an old dependency with groupId
reemarker" (without the "org."), because then you will end up with
o freemarker.jar-s and unpredictable behavior on runtime!
>
ependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>{version}</version>
dependency>

Otherwise simply copy freemarker.jar to a location where your Java application's ClassLoader will find it. For example, if you are using FreeMarker in a web application, you probably want to put freemarker.jar into the WEB-INF/lib directory of your web application.

FreeMarker has no required dependencies. It has several optional dependencies, but usually you don't have to deal with them, because if you are using an optional feature that's certainly because your application already uses the related library.

The minimum required Java version is currently Java SE 5. (The presence of a later version may be detected on runtime and utilized by FreeMarker.)

Change log

Online (for stable releases only): http://freemarker.org/docs/app_versions.html

Offline: In the binary release, open documentation/index.html, and you will find the link.

Building FreeMarker

If you haven't yet, download the source release, or checkout FreeMarker from the source code repository. See repository locations here: http://freemarker.org/sourcecode.html

You need JDK 8, Apache Ant (tested with 1.9.6) and Ivy (tested with 2.4.0) to be installed. To install Ivy (but be sure it's not already installed), issue ant download-ivy; it will copy Ivy under ~/.ant/lib. (Alternatively, you can copy ivy-<version>.jar into the Ant home lib subfolder manually.)

It's recommended to copy build.properties.sample into build.properties, and edit its content to fit your system. (Although basic jar building should succeeds without the build.properties file too.)

To build freemarker.jar, just issue ant in the project root directory, and it should download all dependencies automatically and build freemarker.jar.

If later you change the dependencies in ivy.xml, or otherwise want to re-download some of them, it will not happen automatically anymore, and you must issue ant update-deps.

To test your build, issue ant test.

To generate documentation, issue ant javadoc and ant manualOffline.

Eclipse and other IDE setup

Below you find the step-by-step setup for Eclipse Mars.1. If you are using a different version or an entierly different IDE, still read this, and try to apply it to your development environment:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.