RandomEtc / ejs-locals

Express 3.x layout, partial and block template functions for the EJS template engine.
298 stars 63 forks source link

Nested layouts #38

Closed RangerMauve closed 9 years ago

RangerMauve commented 10 years ago

Hey, I was just wondering what the support for nested layouts was like. What I mean by that is a structure like this:

foo.ejs

<div>
  <%body%>
</div>

bar.ejs

<% layout("foo") -%>
<strong><%body%></strong>

baz.ejs

<% layout("bar") -%>
Hey, it's me.

I don't mean this particular use case, but a structure that would have a template using a layout that's in turn using another layout.