You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a feature request. it would be super cool if we could pass variables to included templates.
Something ike this <mj-include path="/src/components/signature" track_id="1" />
The text was updated successfully, but these errors were encountered:
This is something has been asked before and we don't want to variable inside mj-include. If we allow variables, people will ask conditionnal structures and MJML will become a templating language rather than a markup language.
My best advice for this : use a gulp workflow to render partials rather than mj-include and a templating language like mustache / handlebars to take care of templating needs
It's a feature request. it would be super cool if we could pass variables to included templates.
Something ike this
<mj-include path="/src/components/signature" track_id="1" />
The text was updated successfully, but these errors were encountered: