[
https://issues.apache.org/jira/browse/FREEMARKER-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17411439#comment-17411439
]
Siegfried Goeschl edited comment on FREEMARKER-188 at 9/7/21, 7:20 PM:
-----------------------------------------------------------------------
h3. Examples (Work In Progress)
Pickup all CSV files found in the current working directory and transform them
into HTML files (keeping the relative paths)
{noformat}
bin/freemarker-generator -M generate -t
freemarker-generator/csv/html/transform.ftl -s . --data-source-include="*.csv"
-o target
tree target
target
`-- examples
`-- data
`-- csv
|-- contract.html
|-- dataframe.html
|-- excel-export-utf8.html
|-- locker-test-users.html
|-- sales-records.html
|-- transactions.html
`-- user.html
{noformat}
Pickup all CSV files found in a given directory and transform them into HTML
files
{noformat}
bin/freemarker-generator -M generate -t
freemarker-generator/csv/html/transform.ftl -o target examples/data/csv
tree target
target
|-- contract.html
|-- dataframe.html
|-- excel-export-utf8.html
|-- locker-test-users.html
|-- sales-records.html
|-- transactions.html
`-- user.html
{noformat}
was (Author: sgoeschl):
h3. Examples (Work In Progress)
Pickup all CSV files found in the current working directory and transform them
into HTML files (keeping the relative paths)
{noformat}
bin/freemarker-generator -M generate -t
templates/freemarker-generator/csv/html/transform.ftl -s .
--data-source-include="*.csv" -o target
tree target
target
`-- examples
`-- data
`-- csv
|-- contract.html
|-- dataframe.html
|-- excel-export-utf8.html
|-- locker-test-users.html
|-- sales-records.html
|-- transactions.html
`-- user.html
{noformat}
Pickup all CSV files found in a given directory and transform them into HTML
files
{noformat}
bin/freemarker-generator -M generate -t
freemarker-generator/csv/html/transform.ftl -o target examples/data/csv
tree target
target
|-- contract.html
|-- dataframe.html
|-- excel-export-utf8.html
|-- locker-test-users.html
|-- sales-records.html
|-- transactions.html
`-- user.html
{noformat}
> [freemarker-generator] Support an output "generation" mode
> ----------------------------------------------------------
>
> Key: FREEMARKER-188
> URL: https://issues.apache.org/jira/browse/FREEMARKER-188
> Project: Apache Freemarker
> Issue Type: Improvement
> Reporter: Siegfried Goeschl
> Assignee: Siegfried Goeschl
> Priority: Major
>
> The current "freemarker-generator" implementation supports only
> "aggregation" of multiple data source, e.g. one template takes 0..N data
> sources to generate a template output (stdout or file)
> *1 template + 0..N data sources -> 1 template output*
> We need to provide a "generation" type of transformation as well in order to
> provide
> *1 template + 1..N data sources -> 1..N template outputs*
--
This message was sent by Atlassian Jira
(v8.3.4#803005)