Uploaded image for project: 'VIVO'
  1. VIVO
  2. VIVO-665

Add more "trace" functionality in Freemarker tab of the Developer Panel

    Details

    • Attachments:
      0
    • Comments:
      0

      Description

      Currently, we have a DelimitingTemplateLoader. When it loads a template, it inserts the "delimiters" at beginning and end, saying

      Can we expand that functionality to show something in the HTML as well? So perhaps the template output would be bracketed with <freemarkerTemplate name="page.ftl"> and </freemarkerTemplate>, and this would appear as some kind of gismo on the page, and when you hovered over it, the template output would be highlighted.

      Perhaps we can optionally replace each Freemarker interpolation like $

      {this[that]*2}

      with $

      {trace("this[that]*2)}

      , and the trace call would

      • transparently evaluate the string, so the page appears unaltered
      • catch any Exceptions in the evaluation, so the page will render anyway
      • store the results so we can display at the end of the template in a table.

      We should be able to specify templates to include or to exclude, by means of REGEXes against the template names.

        Attachments

          Activity

            People

            • Assignee:
              j2blake Jim Blake
              Reporter:
              j2blake Jim Blake
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: