Created
December 1, 2016 15:30
-
-
Save jhyland87/d7ef2bd59e2e444811332bb31f46682b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------- | |
# File: source/head.md | |
--- | |
title: head | |
layout: head.pug | |
teststring: testvalue | |
--- | |
(File: head.md) When viewing hello-world.html, you'll see this sentence, but no rendered data from head.pug | |
# ------------------------------------------------- | |
# File: source/hello-world.md | |
--- | |
title: hello-world | |
layout: hello-world.pug | |
include: | |
head: head | |
--- | |
(hello-world.md) This file should show the rendered HTML data from head.pug, but it only shows the content from head.md | |
# ------------------------------------------------- | |
# 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