Skip to content

Instantly share code, notes, and snippets.

@jhyland87
Created December 1, 2016 16:16
Show Gist options
  • Save jhyland87/703d2abff98c4694fe417ffdcb126b53 to your computer and use it in GitHub Desktop.
Save jhyland87/703d2abff98c4694fe417ffdcb126b53 to your computer and use it in GitHub Desktop.
hello-world.pug and head.pug
//--------------------------------
//- File: templates/hello-world.pug
// Begin: hello-world.pug
//- I would expect this to show the rendered head.md file, including the head.pug data, but it only shows the "content" from head.md
!= head
!=contents
p (File: hello-world.pug) This page includes the content from head.md, but not the rendered data from head.pug
// End: hello-world.pug
//--------------------------------
//- File: templates/head.pug
// Begin: head.pug
!=contents
p (File: head.pug) This is the content that doesn't get rendered when this file is included
// End: head.pug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment