Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for recursive layouts #62

Open
hollandjake opened this issue Jul 2, 2024 · 0 comments
Open

Support for recursive layouts #62

hollandjake opened this issue Jul 2, 2024 · 0 comments

Comments

@hollandjake
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant