I'm using mjml-go to process an mjml file into HTML and then html/template to do variable replacement.
In the mjml file, I'd like to be able to use control structures like if and range.
When I pass an mjml file that contains the code below into a call like:
I'm using mjml-go to process an mjml file into HTML and then html/template to do variable replacement. In the mjml file, I'd like to be able to use control structures like
if
andrange
.When I pass an mjml file that contains the code below into a call like:
The HTML does not contain the
if
andrange
templates, but it does contain the{{.NoteAnything}}
variable replacements.Is there a way to allow these structures to pass through?