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

[freemarker-cli] Make usage of "DataSources" more "Freemarker" like

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      "DataSources" is exposed to get/find documents - as suggested it would be nice to make the access more aligned with FreeMarker usage.

      The way to go is to wrap "DataSources" and expose "TemplateSequenceModel" and "TemplateHashModel".

      So accessing the first datasource would look like

      ${GsonTool.toJson(YamlTool.parse(DataSources[0]))}
      

      instead of

      ${GsonTool.toJson(YamlTool.parse(DataSources.get(0)))}
      

      Attachments

        Issue Links

          Activity

            People

              sgoeschl Siegfried Goeschl
              sgoeschl Siegfried Goeschl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: