[ 
https://issues.apache.org/jira/browse/FREEMARKER-173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Siegfried Goeschl updated FREEMARKER-173:
-----------------------------------------
    Description: 
On the command line a "NamedUri" is used to define data sources to be created

{noformat}
users.csv
file:///users.csv
users=users.csv
name:group=users.csv
users=file:///users.txt#charset=UTF-16&mimetype=text/csv
http://google.com#charset=UTF-16
{noformat}

The current implementation supports picking up the following parameters to be 
passed to a DataSource (found in the fragment part)

* charset
* mimetype

It make sense to parse arbitrary name/value pairs and pass it to the DataSource 
being created

{noformat}
examples/data/csv#format=DEFAULT
examples/data/csv/transactions.csv#delimiter=TAB
examples/data/csv/transactions.csv#delimiter=TAB&charset=UTF-8
{noformat}

As shown in the examples the fragment parameters should be applies to an 
individual file or a group of files loaded from a directory



  was:
On the command line a "NamedUri" is used to define data sources to be created

{noformat}
users.csv
file:///users.csv
users=users.csv
name:group=users.csv
users=file:///users.txt#charset=UTF-16&mimetype=text/csv
http://google.com#charset=UTF-16
{noformat}

The current implementation supports picking up the following parameters to be 
passed to a DataSource (found in the fragment part)

* charset
* mimetype

It make sense to parse arbitrary name/value pairs and pass it to the DataSource 
being created

{noformat}
examples/data/csv#format=DEFAULT
examples/data/csv/transactions.csv#delimiter=TAB
{noformat}

As shown in the examples the fragment parameters should be applies to an 
individual file or a group of files loaded from a directory




> [freemarker-generator] Allow to pass arbitrary key/value pairs to DataSource 
> when using NamedURIs
> -------------------------------------------------------------------------------------------------
>
>                 Key: FREEMARKER-173
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-173
>             Project: Apache Freemarker
>          Issue Type: Improvement
>            Reporter: Siegfried Goeschl
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>
> On the command line a "NamedUri" is used to define data sources to be created
> {noformat}
> users.csv
> file:///users.csv
> users=users.csv
> name:group=users.csv
> users=file:///users.txt#charset=UTF-16&mimetype=text/csv
> http://google.com#charset=UTF-16
> {noformat}
> The current implementation supports picking up the following parameters to be 
> passed to a DataSource (found in the fragment part)
> * charset
> * mimetype
> It make sense to parse arbitrary name/value pairs and pass it to the 
> DataSource being created
> {noformat}
> examples/data/csv#format=DEFAULT
> examples/data/csv/transactions.csv#delimiter=TAB
> examples/data/csv/transactions.csv#delimiter=TAB&charset=UTF-8
> {noformat}
> As shown in the examples the fragment parameters should be applies to an 
> individual file or a group of files loaded from a directory



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

Reply via email to