[ 
https://issues.apache.org/jira/browse/FREEMARKER-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17258580#comment-17258580
 ] 

Siegfried Goeschl commented on FREEMARKER-161:
----------------------------------------------

Work in progress - code compiles and tests pass but still requires work & 
update of documentation

> [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}
> # Transforming a directory of data source with a single template
> freemarker-cli -t examples/templates/properties/csv/locker-test-users.ftl 
> examples/data/properties 
> # Transforming a directory of templates using 0-n shared data sources
> freemarker-cli -t site/template/ -m nginx.env 
> # Transforming multiple templates using 0-n shared data sources
> 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 datsource021.json -o 
> target/template02.xyz
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to