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/04/11 19:21:00 UTC

[jira] [Created] (FREEMARKER-141) freemarker-cli: Expose user-supplied parameters in the data model

Siegfried Goeschl created FREEMARKER-141:
--------------------------------------------

             Summary: freemarker-cli: Expose user-supplied parameters in the data model
                 Key: FREEMARKER-141
                 URL: https://issues.apache.org/jira/browse/FREEMARKER-141
             Project: Apache Freemarker
          Issue Type: Task
            Reporter: Siegfried Goeschl
            Assignee: Siegfried Goeschl


Currently user-supplied parameters are passed as "-Pname=value" and are not directly accessible from the provide data model (only via SystemTool)

We would like to implement the following improved way to handle user-supplied

```
-P name=value => access via ${name}
-P name:group=value access via ${group.name}
```

Some thoughts along the line

* It would be nice if user-supplied parameter selectively overwrite other entries in the data model, e.g. overwrite a value provided from a property or JSON file 



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