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

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

Still no "seed-datasource" - having said that we need a way to determine the 
output file(s)

* for simple cases a file extension can be passed, e.g. to map "datasource.csv" 
=> "datasource.html"
* for complex cases also a path need to be determined when not doing 1:1 
recursive processing

> [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-generator -t 
> examples/templates/properties/csv/locker-test-users.ftl 
> examples/data/properties 
> # Transforming a directory of templates using data sources
> freemarker-generator -t examples/data/template -m 
> examples/data/ftl/nginx/nginx.env -o target/template
> # Transforming multiple templates using 0-n shared data sources & data models
> freemarker-generator \
> -t templates/freemarker-generator/csv/md/transform.ftl -o target/contract.md \
> -t templates/freemarker-generator/csv/html/transform.ftl -o 
> target/contract.html \
> examples/data/csv/contract.csv
> {noformat}
> It would be nice to support the transformation of multiple templates using 
> individual set of data sources, e.g.
> {noformat}
> freemarker-generator \
>  -t templates/freemarker-generator/csv/md/transform.ftl -s 
> examples/data/csv/contract.csv -o target/contract.md \
>  -t templates/freemarker-generator/csv/html/transform.ftl -s 
> examples/data/csv/sales-records.csv -o target/sales-records.html
> {noformat}



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

Reply via email to