You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Siegfried Goeschl (Jira)" <ji...@apache.org> on 2020/11/02 15:42:00 UTC

[jira] [Created] (FREEMARKER-161) [freemarker-generator] Allow multiple transformations on the CLI

Siegfried Goeschl created FREEMARKER-161:
--------------------------------------------

             Summary: [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


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 [~ddekany@freemail.hu] 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}





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