MjmlEEx (MJML EEx v0.1.0) View Source
Documentation for MjmlEEx
.
Link to this section Summary
Functions
This function will read the MJML EEx file, tokenize all of the EEx clauses, convert the tokenized clauses into base64 encoded strings, compile the MJML template using the Rust MJML NIF compiler, and then finally convert all of the base64 encoded strings back into valid Elixir code.
Link to this section Functions
This function will read the MJML EEx file, tokenize all of the EEx clauses, convert the tokenized clauses into base64 encoded strings, compile the MJML template using the Rust MJML NIF compiler, and then finally convert all of the base64 encoded strings back into valid Elixir code.
The reason for the base64 encoding/decoding step is to ensure that EEx
<%= ... %>
and <% ... %>
statements do not break the Rust MJML compiler.