[
https://issues.apache.org/jira/browse/FREEMARKER-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Siegfried Goeschl updated FREEMARKER-161:
-----------------------------------------
Description:
Currently freemarker-cli allows to transform
* a single template using 0-n data source => file/stdout
* multiple templates using 0-n shared data sources => files/stdout
* a directory of templates using 0-n shared data sources => directory/stdout
{noformat}
freemarker-cli \
-t templates/csv/md/transform.ftl -o target/contract.md \
-t templates/csv/html/transform.ftl -o target/contract.html \
examples/data/csv/contract.csv
freemarker-cli \
-t templates/csv/md/transform.ftl -o target/contract.md \
-t templates/csv/html/transform.ftl -o target/contract.html \
examples/data/csv/contract.csv
{noformat}
According to [[email protected]] it would be nice to support the
transformation of multiple templates using individual set of data sources
{noformat}
freemarker-cli \
-t templates/template01.ftl -s datsource010.json -o target/template01.xyz \
-t templates/template02.ftl -s datsource020.json -s datsource020.json -o
target/template02.xyz
{noformat}
was:
Currently freemarker-cli allows to transform
* a single template using 0-n data source => file/stdout
* multiple templates using 0-n shared data sources => files/stdout
* a directory of templates using 0-n shared data sources => directory/stdout
{noformat}
freemarker-cli \
-t templates/csv/md/transform.ftl -o target/contract.md \
-t templates/csv/html/transform.ftl -o target/contract.html \
examples/data/csv/contract.csv
freemarker-cli \
-t templates/csv/md/transform.ftl -o target/contract.md \
-t templates/csv/html/transform.ftl -o target/contract.html \
examples/data/csv/contract.csv
{noformat}
According to [[email protected]] it would be nice to support the
transformation of multiple templates using individual set of data sources
freemarker-cli \
-t templates/template01.ftl -s datsource010.json -o target/template01.xyz \
-t templates/template02.ftl -s datsource020.json -s datsource020.json -o
target/template02.xyz
{noformat}
> [freemarker-generator] Allow multiple transformations on the CLI
> ----------------------------------------------------------------
>
> Key: FREEMARKER-161
> URL: https://issues.apache.org/jira/browse/FREEMARKER-161
> Project: Apache Freemarker
> Issue Type: Task
> Reporter: Siegfried Goeschl
> Assignee: Siegfried Goeschl
> Priority: Major
>
> Currently freemarker-cli allows to transform
> * a single template using 0-n data source => file/stdout
> * multiple templates using 0-n shared data sources => files/stdout
> * a directory of templates using 0-n shared data sources => directory/stdout
> {noformat}
> freemarker-cli \
> -t templates/csv/md/transform.ftl -o target/contract.md \
> -t templates/csv/html/transform.ftl -o target/contract.html \
> examples/data/csv/contract.csv
> freemarker-cli \
> -t templates/csv/md/transform.ftl -o target/contract.md \
> -t templates/csv/html/transform.ftl -o target/contract.html \
> examples/data/csv/contract.csv
> {noformat}
> According to [[email protected]] it would be nice to support the
> transformation of multiple templates using individual set of data sources
> {noformat}
> freemarker-cli \
> -t templates/template01.ftl -s datsource010.json -o target/template01.xyz \
> -t templates/template02.ftl -s datsource020.json -s datsource020.json -o
> target/template02.xyz
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)