Skip to content

Support for recursive layouts #62

@hollandjake

Description

@hollandjake

Say you have a base layout you want to be applied to all pages, but you also have a sub-layout that contains a little extra bloat (such as some extra css files) which is also shared between a few more pages.

Is there any way for this to be achieved?

<!-- base-layout.ejs -->
<html>
<body>
  <nav>Some nav</nav>
  <%- body %>
</body>
</html>
<!-- sub-layout.ejs -->
<div>SOME PAGE BANNER</div> 
<%- body %>
<!-- page.ejs -->
<h1>Page Title</h1>

Expected output

<html>
<body>
  <nav>Some nav</nav>
  <div>SOME PAGE BANNER</div> 
  <h1>Page Title</h1>
</body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions