In the Play! Framework, I can do the following to DRY up my layout code:
In main.html:
<h1>This is main</h1>
#{doLayout /}
<div id="footer">Footer content</div>
In home.html:
#{extends 'main.html' /}
<p>This is the home page content</p>
I would like to do the same in AngularJS i.e I would like to create an HTML file and have it inherit from another. I see that there is the ngInclude directive, but using it causes a lot of layout code duplication in my current application. If AngularJS does not natively support it, are there any other HTML templating solutions that do?
Thanks.