CompiledTemplateResource should allow access to CompiledTemplate
----------------------------------------------------------------
Key: FORGE-374
URL:
https://issues.jboss.org/browse/FORGE-374
Project: Forge
Issue Type: Feature Request
Reporter: Richard Kennard
Assignee: Lincoln Baxter III
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira