Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Echoing values #743

Closed
ghost opened this issue Jul 13, 2017 · 1 comment
Closed

Echoing values #743

ghost opened this issue Jul 13, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 13, 2017

I'm trying to build a re-usable templates and am curious if there is a way to set a single variable near the top of the code and then echo it in multiple places later. Like list a link variable once up top and echo it in the body in multiple href areas.

similar to a simple php variable and echo

@iRyusa
Copy link
Member

iRyusa commented Jul 13, 2017

Hi @jgralinski

MJML is a markup language so there's no such thing as variable, or conditionnal structure. You could use something like handlebars, mustache or any templating language to do this job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant