Skip to content

Instantly share code, notes, and snippets.

@chirino
Forked from jstrachan/gist:956831
Created May 5, 2011 10:22
Show Gist options
  • Save chirino/956834 to your computer and use it in GitHub Desktop.
Save chirino/956834 to your computer and use it in GitHub Desktop.
---- index.jade ----
- attributes("layout") = "/WEB-INF/nested.jade"
- attributes("left") = capture
h1 Hello
- attributes("right") = capture
p This is the content
---- /WEB-INF/nested.jade ----
- layout("/WEB-INF/outer.jade")
.left
!~~ attributes("left")
.right
!~~ attributes("right")
---- /WEB-INF/outer.jade ----
html
body
!~~ attributes("body")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment