DougBeney / jekyll-pug

Jekyll Plugin That Allows You To Use Pug
MIT License
37 stars 2 forks source link

Include with parameters #17

Closed lucasnantonio closed 6 years ago

lucasnantonio commented 6 years ago

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?

lucasnantonio commented 6 years ago

Never mind, my mistake. Includes need {{ }}

DougBeney commented 6 years ago

Glad you solved it. Thanks for using Jekyll Pug!