Handlebars-like, curly brace expression syntax is supported, allowing you to access variables from your Environment config or from a Template’s Front Matter:Documentation Index
Fetch the complete documentation index at: https://mintlify.com/maizzle/maizzle.com/llms.txt
Use this file to discover all available pages before exploring further.
emails/example.html
maizzle build production would render this HTML:
emails/example.html
maizzle build, we would get:
Unescaping
By default, special characters are escaped when using two curly braces:emails/example.html
emails/example.html
Ignoring
Other templating engines and many ESPs also use the{{ }} syntax.
If you want to prevent expression compilation and actually render the curly braces so you can evaluate them at a later stage, you have several options.
Undefined variables
First, it’s important to note that any undefined variable will simply be output as-is, so you don’t need to do anything special if you want to ignore an expression containing a variable that doesn’t exist in your Environment config or Front Matter:emails/example.html
build_production/example.html
Ignore inline
The Blade-inspired@{{ }} syntax is useful for one-offs, where you need to ignore a single expression which contains variables that you also have defined in your Maizzle project. The compiled email will render {{ }} without the @.
For example, if you actually want to render {{ page.title }} instead of evaluating it:
emails/example.html
emails/example.html
Ignore in Front Matter
You may also use@{{ }} to ignore expressions in Front Matter.
emails/example.html
build_production/example.html
@ if your expression contains a variable that doesn’t exist in your Environment config or Front Matter:
emails/example.html
build_production/example.html
Ignore with <raw>
Use<raw> to ignore expressions or any PostHTML tags in a block of HTML:
emails/example.html
<raw> will be removed in the final output, but the curly braces will be left untouched:
build_production/example.html
Change delimiters
You can change the delimiters to something else, like[[ ]]:
config.js
{{ }} and it will not be evaluated:
emails/example.html