You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Daniel Dekany (JIRA)" <ji...@apache.org> on 2017/08/08 11:58:00 UTC

[jira] [Closed] (FREEMARKER-63) FM3 Unification and improvement of directive-like constructs

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

Daniel Dekany closed FREEMARKER-63.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

> FM3 Unification and improvement of directive-like constructs
> ------------------------------------------------------------
>
>                 Key: FREEMARKER-63
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-63
>             Project: Apache Freemarker
>          Issue Type: New Feature
>          Components: engine
>    Affects Versions: 3.0.0
>            Reporter: Daniel Dekany
>            Assignee: Daniel Dekany
>             Fix For: 3.0.0
>
>
> In FreeMarker 3 all kind of directive-like user defined objects (macros, {{TemplateDirectiveModel}}-s, {{TempalteTransfromModel}}-s, etc) has to be united under a single {{TemplateModel}} subinterface, which support all the features supported by the replaced FM2 concepts (e.g. nested content execution, loop variables, passing parameters by position and by name, varargs in both cases, call place bound caching, etc.). Obviously, the template language has to support calling this new interface, and then the old ones has to be removed.
> Furthermore, as a new feature in FM3, passing parameter both by position and by name in the same invocation (as in {{<@image "foo.jpg" alt="Foo" />}}) need to be supported.
> (Similarly, {{#function}} and {{TempalteMethodModel}} will have to be generalized and united, but that will be in a separate issue.)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)