Skip to content

Instantly share code, notes, and snippets.

@dschnare
Last active December 18, 2015 12:49
Show Gist options
  • Save dschnare/5785667 to your computer and use it in GitHub Desktop.
Save dschnare/5785667 to your computer and use it in GitHub Desktop.
Sharing Variables with Jade Templates: Examples of how and how not to share variables across a template and layout.
extends layout
prepend page
- title = "Home"
block body
p This is the \#{title} page
- title = "Home"
extends layout
block body
p This is the \#{title} page
doctype 5
block page
html
head
title=title
body
block body
p Hello
doctype 5
html
head
title=title
body
block body
p Hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment