Closed lucasnantonio closed 6 years ago
Hi, I'm trying to include .pug files and pass parameters to them.
test.pug p { include.text }
p { include.text }
layout.pug {% include test.pug text="foo"}
{% include test.pug text="foo"}
is rendering <p>{include.text}</p>
<p>{include.text}</p>
instead of the expected result <p>foo</p>
<p>foo</p>
any tips why this might be happening?
Never mind, my mistake. Includes need {{ }}
Glad you solved it. Thanks for using Jekyll Pug!
Hi, I'm trying to include .pug files and pass parameters to them.
test.pug
p { include.text }
layout.pug
{% include test.pug text="foo"}
is rendering
<p>{include.text}</p>
instead of the expected result
<p>foo</p>
any tips why this might be happening?