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

CompiledTemplateResource should allow access to CompiledTemplate

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: