Replies: 3 comments
-
Well, mosaico doesn't care at all about those "tokens". It is something defined in the default master template (versafix-template) that is an external project. We never documented it because we thought that users of Mosaico will simply customize the master template using their tokens and Mosaico won't care at all about it. The tokens you see are the tokens used by VOXmail, the ESP that opensourced Mosaico, so we simply left our tokens there. If in future Mosaico will understand something about tokens, THEN, we'll have to take care documenting them in mosaico. In the mean time we could add some README to versafix-template project about the tokens used by that master template and the fact that you probably have to replace them with your own. Of course documentation contributions are more than welcome! |
Beta Was this translation helpful? Give feedback.
-
Please note versafix has its own repository https://github.com/voidlabs/versafix-template and since 1.1.x it is generated and maintained using a templating language (HTMML). |
Beta Was this translation helpful? Give feedback.
-
About your "2 levels" of variable substitution I think the second one is part of much more things a backend will do. Most backends will add open tracking and click tracking, for example, and this cannot be done on the client side as they are different "per recipient": most backend will have to implement their parsing in order to find links to "track" (replace) or to find where to put the unsubscribe link or the open tracking image. Maybe we could add something to mosaico to make this parsing easier, but I don't know how (e.g. in our own private backend we also parse CSS and replace every url referred in styles). For the record, some backend also search for "images source urls" (img src attr, td background attr, css background: url() property, etc ) in order to replace "dinamically" generated images with images uploaded to a CDN. |
Beta Was this translation helpful? Give feedback.
-
There are two distinct levels of variable-substitution when composing a message with Mosaico.
There's some formalization/documentation for the design-time variables, but I haven't found any documentation about mail-merge tokens. This is both a strength and a weakness:
To mitigate the weakness, we could add documentation for recommended mail-merge tokens based on the current list of tokens found in
versafix-1
:[unsubscribe_link]
[show_link]
[profile_link]
[mail]
Since these would be presented as mere recommendations, it should be fine and expected that different templates and backends support different functionality. However, for template and backend developers that want interoperability, they could aim for mutual support of the recommended tokens.
Beta Was this translation helpful? Give feedback.
All reactions