ASF GitHub Bot commented on FREEMARKER-64:

GitHub user ddekany opened a pull request:


    FREEMARKER-64: Function (and thus also method) call syntax now suppor…

    …ts passing parameter by name.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ddekany/incubator-freemarker FREEMARKER-64

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #33
commit b59a03a8add0f47427ddd9594852f7bd86a8a7e9
Author: ddekany <ddek...@apache.org>
Date:   2017-08-08T11:46:50Z

    FREEMARKER-64: Function (and thus also method) call syntax now supports 
passing parameter by name.


> FM3 Unification and improvement of function-like constructs
> -----------------------------------------------------------
>                 Key: FREEMARKER-64
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-64
>             Project: Apache Freemarker
>          Issue Type: New Feature
>          Components: engine
>    Affects Versions: 3.0.0
>            Reporter: Daniel Dekany
>            Assignee: Daniel Dekany
> FREEMARKER-63 has introduced {{TemplateFunctionModel}}, which is the type of 
> values that {{#function}} creates. It should also replace 
> {{TemplateMethodModel}} and {{TemplateMethodModelEx}}, so that we have only 
> one interface for function-like things. (If that doesn't work out well, we at 
> least should remove the deprecated {{TemplateMethodModel}}, and then rename 
> {{TemplateMethodModelEx}} to that name. Also, we need to support the explicit 
> selection overloaded Java methods - see in {{CallPlace}}).
> As {{TemplateFunctionModel}} supports both positional and named parameters, 
> the expression language has to be upgraded to support that too.
> Things like `?isMethod` and `?isFunction` have to be reworked as well.

This message was sent by Atlassian JIRA

Reply via email to