Uploaded image for project: 'Apache Freemarker'
  1. Apache Freemarker
  2. FREEMARKER-63

FM3 Unification and improvement of directive-like constructs

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • engine
    • None

    Description

      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.)

      Attachments

        Issue Links

          Activity

            People

              ddekany Dániel Dékány
              ddekany Dániel Dékány
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: