Generate files based on directory-structured templates (supporting i18n and defaults with overriding)
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.
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.
- 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
<dependency>
<groupId>eu.ralph-schuster</groupId>
<artifactId>template-machine</artifactId>
<version>1.0.2</version>
</dependency>
- Getting Started
- Understanding the Concept
- Configuration
- CLI - Command Line Interface
- Using the Java API
API Javadoc for all versions is available via javadoc.io.
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:
- You are free to use all this code in any private or commercial project.
- You must distribute license and author information along with your project.
- You are not required to publish your own source code.
Report a bug, request an enhancement or pull request at the GitHub Issue Tracker. Make sure you have checked out the Contribution Guideline