freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dekany (JIRA)" <>
Subject [jira] [Created] (FREEMARKER-63) FM3 Unification and improvement of directive-like constructs
Date Mon, 24 Jul 2017 18:25:00 GMT
Daniel Dekany created FREEMARKER-63:

             Summary: FM3 Unification and improvement of directive-like constructs
                 Key: FREEMARKER-63
             Project: Apache Freemarker
          Issue Type: New Feature
          Components: engine
    Affects Versions: 3.0.0
            Reporter: Daniel Dekany
            Assignee: Daniel Dekany

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

View raw message