mrml
mrml copied to clipboard
Is for loop supported ?
Hi,
I've tried something like:
<mj-raw>{% for resource in resources %}</mj-raw>
<mj-text>
Ressource: {{ resource }}
</mj-text>
<mj-raw>{% endfor %}</mj-raw>
then:
curl -X POST -v \
-H "Content-Type: application/json" \
--data '{"from":"EMAIL","to":"EMAIL","params":{"name": "Edouard", "resources":["01","02"], "token":"TOKEN_DATA"}}' \
http://localhost:3000/templates/test
with no luck. Is there a way to make simple loops in mjml ?
best regards
Hello, I have similar question too. Is this supported?
@Madko did you try without the <mj-raw>
?
No answers for more than a year, closing this