template-machine

Templating engines for files

License

License

GroupId

GroupId

eu.ralph-schuster
ArtifactId

ArtifactId

template-machine
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

template-machine
Templating engines for files
Project URL

Project URL

https://github.com/technicalguru/template-machine
Source Code Management

Source Code Management

https://github.com/technicalguru/template-machine

Download template-machine

How to add to project

<!-- https://jarcasting.com/artifacts/eu.ralph-schuster/template-machine/ -->
<dependency>
    <groupId>eu.ralph-schuster</groupId>
    <artifactId>template-machine</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/eu.ralph-schuster/template-machine/
implementation 'eu.ralph-schuster:template-machine:1.0.2'
// https://jarcasting.com/artifacts/eu.ralph-schuster/template-machine/
implementation ("eu.ralph-schuster:template-machine:1.0.2")
'eu.ralph-schuster:template-machine:jar:1.0.2'
<dependency org="eu.ralph-schuster" name="template-machine" rev="1.0.2">
  <artifact name="template-machine" type="jar" />
</dependency>
@Grapes(
@Grab(group='eu.ralph-schuster', module='template-machine', version='1.0.2')
)
libraryDependencies += "eu.ralph-schuster" % "template-machine" % "1.0.2"
[eu.ralph-schuster/template-machine "1.0.2"]

Dependencies

compile (6)

Group / Artifact Type Version
org.freemarker : freemarker jar 2.3.30
commons-cli : commons-cli jar 1.4
commons-io : commons-io jar 2.7
commons-codec : commons-codec jar 1.14
org.slf4j : slf4j-api jar 1.7.30
org.slf4j : slf4j-log4j12 jar 1.7.30

test (2)

Group / Artifact Type Version
commons-lang : commons-lang jar 2.6
junit : junit jar 4.13.1

Project Modules

There are no modules declared in this project.

template-machine

Generate files based on directory-structured templates (supporting i18n and defaults with overriding)

Synopsis

This application allows you to generate a complex tree of files based on Freemarker templates. The very specific of this application is that configuration, localizations and templates can be overridden in sub-folders of the tree as well as default language values and language aliases can be defined.

Status and Roadmap

The project is stable. APIs are will not change in major versions. I use it a productive setup at a larger corporate to produce email templates in various languages and for various subsidiaries in a large scale.

Features

  • Generates a tree of files based on a tree of templates
  • Provides localization, default localization values and language aliases
  • Sub-folders can override configurations, localizations and templates
  • CLI interface and programmatic API to control the generation

Maven Coordinates

<dependency>
	<groupId>eu.ralph-schuster</groupId>
	<artifactId>template-machine</artifactId>
	<version>1.0.2</version>
</dependency>

Documentation

API Reference

API Javadoc for all versions is available via javadoc.io.

License

template-machine is free software: you can redistribute it and/or modify it under the terms of version 3 of the GNU Lesser General Public License as published by the Free Software Foundation.

template-machine is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with template-machine. If not, see https://www.gnu.org/licenses/lgpl-3.0.html.

Summary:

  1. You are free to use all this code in any private or commercial project.
  2. You must distribute license and author information along with your project.
  3. You are not required to publish your own source code.

Contributions

Report a bug, request an enhancement or pull request at the GitHub Issue Tracker. Make sure you have checked out the Contribution Guideline

Versions

Version
1.0.2
1.0.0
0.9.0