[ 
https://issues.apache.org/jira/browse/LABS-241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14031883#comment-14031883
 ] 

jan iversen commented on LABS-241:
----------------------------------

Is this still an issue, if not please close it (or let me close it)

> [web] Templates nesting/includes
> --------------------------------
>
>                 Key: LABS-241
>                 URL: https://issues.apache.org/jira/browse/LABS-241
>             Project: Labs
>          Issue Type: New Feature
>          Components: Magma
>    Affects Versions: Current
>            Reporter: Simone Gianni
>            Assignee: Simone Gianni
>             Fix For: Future
>
>
> While it is possible to extend a template class with another template class, 
> and inherit/override as usual, this is not currently possible on an HTML 
> level.
> That means that a web site will have a TempateA.java and a TemplateA.html. 
> Then a TemplateB.java, extending TemplateA and simply overriding and 
> cutomizing stuff, but must have a TemplateB.html file (if needed) that must 
> redefine everything that was in TemplateA.html.
> It would be nice to have a TemplateB.html that simply "patches" TemplateA, 
> but unfortunately this is not so easy, because there is no known standard on 
> patching an HTML file. XSLT could be a way, but that would be rather an 
> extension than a new feature.
> Instead, this lack can be mitigated having a way to include a template in 
> another template. This way, common parts between TemplateA and TemplateB 
> could be refactored out in, say, FooterTemplate, HeaderTemplate and so on.
> We still need to investigate wether this kind of inclusion should be done in 
> the java class, using the current layout system, and/or in HTML directly.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: labs-unsubscr...@labs.apache.org
For additional commands, e-mail: labs-h...@labs.apache.org

Reply via email to