Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-374

CompiledTemplateResource should allow access to CompiledTemplate

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Beta4
    • None
    • None
    • None

      Hi guys,

      It would be really handy if CompiledTemplateResource had some kind of 'getCompiledTemplate' method. At the moment it just keeps this internally. My use case is:

      I need to be able to compile a template and parse it for certain contents. At the moment this means I have to do it twice:

      this.viewTemplate = this.compiler.compile(VIEW_TEMPLATE);
      NamespacesAndIndent namespacesAndIndent = parseNamespacesAndIndent(this.compiler
      .getTemplateResolverFactory()
      .resolve(VIEW_TEMPLATE).getInputStream());

      If I could get to the actual CompiledTemplate, then CompiledTemplate.getRoot() and CompiledTemplate.getTemplate() have already been parsed for me.

              lincolnthree Lincoln Baxter III (Inactive)
              kennardconsulting Richard Kennard (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: