I have this:

{% include "partials/includes/page-header" with { 'title' : '{{ entry.heading }}' } %}

But it seems that nothing I do will actually pass {{ entry.heading }} as 'title' in the include.


You'll never need to put Twig tags within other Twig tags... Try it like this:

{% include "partials/includes/page-header" with { 'title' : entry.heading } %}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.