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

Inspect Freemarker Variables in Template for e.g. Testing

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 2.3.28
    • None
    • engine
    • None
    • ALL

    Description

      Story

      As tester and backend tool developer
      we wish to inspect variables of a template
      so that we can test template structure before rendering, while testing and can present internally a gui tool which will show all variables, default values and all that stuff

      Description

      FreeMarker already scans the template, so why not giving access to the parsed elements? It would be sad if we have to implement the same parsing logic as FreeMarker already does.

      Acceptance criteria
      • parsed elements like e.g. freemarker.core.* can be accessed by e.g. (freemarker.coreTemplate.getRootTreeNode().getVariables() )
      • Variables are having types like, optional, required, predefined/constant,...
      • Variables are having default parameter which can be reached by another getter
      Links example

      https://stackoverflow.com/questions/1919189/how-can-i-introspect-a-freemarker-template-to-find-out-what-variables-it-uses

      Attachments

        Activity

          People

            Unassigned Unassigned
            Yuna90 Yuna Morgenstern
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: