[
https://issues.apache.org/jira/browse/FREEMARKER-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Siegfried Goeschl updated FREEMARKER-142:
-----------------------------------------
Description:
h2. Overview
Currently ony a single FreeMarker Template can be transformed with a single
command line invocation - I suggest to add the following functionality
* Transform an input directory recursively into an output directory
* If a template ends with ".ftl" the extension will be removed after processing
* Only a single directory is support
* Currently no inclusion / exlusion pattern for templates are supported
h2. Examples
Expand all files found in the `in` directory with environment variables
{noformat}
./bin/freemarker-cli -t site/template/
# == application.properties ==================================================
server.name=localhost
server.logs=/var/log/nginx
# == nginx-conf =============================================================
server {
listen 80;
server_name 127.0.0.1;
root /usr/share/nginx/www;
index index.htm;
}
./bin/freemarker-cli -t site/template/ -P NGINX_HOSTNAME=localhost
# == application.properties ==================================================
server.name=localhost
server.logs=/var/log/nginx
# == nginx-conf =============================================================
server {
listen 80;
server_name localhost;
root /usr/share/nginx/www;
index index.htm;
}
{noformat}
was:
h2. Overview
Currently ony a single FreeMarker Template can be transformed with a single
command line invocation - I suggest to add the following functionality
* Transform an input directory recursively into an output directory
* If a template ends with ".ftl" the extension will be removed after processing
* Only a single directory is support
* Currently no inclusion / exlusion pattern for templates are supported
h2. Examples
Expand all files found in the `in` directory with environment variables
{noformat}
freemarker-cli -m env:/// -t in -o out
freemarker-cli --data-model env:/// --template in --output out
{noformat}
> [freemarker-cli] Support Transformation Of Directories
> ------------------------------------------------------
>
> Key: FREEMARKER-142
> URL: https://issues.apache.org/jira/browse/FREEMARKER-142
> Project: Apache Freemarker
> Issue Type: Task
> Reporter: Siegfried Goeschl
> Assignee: Siegfried Goeschl
> Priority: Major
>
> h2. Overview
> Currently ony a single FreeMarker Template can be transformed with a single
> command line invocation - I suggest to add the following functionality
> * Transform an input directory recursively into an output directory
> * If a template ends with ".ftl" the extension will be removed after
> processing
> * Only a single directory is support
> * Currently no inclusion / exlusion pattern for templates are supported
> h2. Examples
> Expand all files found in the `in` directory with environment variables
> {noformat}
> ./bin/freemarker-cli -t site/template/
> # == application.properties ==================================================
> server.name=localhost
> server.logs=/var/log/nginx
> # == nginx-conf =============================================================
> server {
> listen 80;
> server_name 127.0.0.1;
> root /usr/share/nginx/www;
> index index.htm;
> }
> ./bin/freemarker-cli -t site/template/ -P NGINX_HOSTNAME=localhost
> # == application.properties ==================================================
> server.name=localhost
> server.logs=/var/log/nginx
> # == nginx-conf =============================================================
> server {
> listen 80;
> server_name localhost;
> root /usr/share/nginx/www;
> index index.htm;
> }
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)