You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
6
6
### 🧬 Improvements
7
7
- Added locale to placeholder callback. [#6](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/6). Thanks to [mtrezza](https://github.com/mtrezza).
8
+
- Added current placeholders to placeholder callback. [#7](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/7). Thanks to [mtrezza](https://github.com/mtrezza).
@@ -149,12 +150,13 @@ There are different files for different parts of the email:
149
150
Placeholders allow to dynamically insert text into the template file content. The placeholders are filled in according to the key-value definitions returned by the placeholder callback in the adapter configuration.
150
151
151
152
This is using the [mustache](http://mustache.github.io/mustache.5.html) template syntax. The most commonly used tags are:
152
-
-`{{double-mustache}}`
153
+
-`{{double-mustache}}`: The most basic form of tag; inserts text as HTML escaped by default.
154
+
-`{{{triple-mustache}}}`: Inserts text with unescaped HTML, which is required to insert a URL for example.
153
155
154
-
The most basic form of tag; inserts text as HTML escaped by default.
155
-
-`{{{triple-mustache}}}`
156
-
157
-
Inserts text with unescaped HTML, which is required to insert a URL for example.
156
+
By default, the following placeholders are available in the password reset and email verification templates:
157
+
-`appName`: The app name as defined in the Parse Server configuration.
158
+
-`username`: The username of the user who requested the email.
159
+
-`link`: The URL to the password reset or email verification form.
0 commit comments