Muut
1
Hello. How can i pass a variable to a value, thats between comas? that is:
{{ page.media.images[job.image].resize(300, 300).quality(85).html("{{ job.text }}") }}
i know job.text is valid, because
{{ job.title }}
becomes
Demarca
but html("{{ job.text }}
becomes
Thanks for any feedback
Muut
2
You already opened the Twig parentheses, so simply use
{{ page.media.images[job.image]
.resize(300, 300)
.quality(85)
.html(job.text) }}
Muut
3
worked like a charm. i thought i had to manually insert the commas. But it seems Grav sees a string, and takes care of them.
thanks!!