diff --git a/lib/templates/email_fromname.mustache b/lib/templates/email_fromname.mustache
index ec43023a985..8bb9803ab4c 100644
--- a/lib/templates/email_fromname.mustache
+++ b/lib/templates/email_fromname.mustache
@@ -15,7 +15,7 @@
along with Moodle. If not, see
.
}}
{{!
- @template core/email_html
+ @template core/email_fromname
Template for all email subjects.
@@ -31,5 +31,10 @@
* fromname
* replyto
* replytoname
+
+ Example context (json):
+ {
+ "fromname": "Joe Bloggs"
+ }
}}
{{{fromname}}}
diff --git a/lib/templates/email_html.mustache b/lib/templates/email_html.mustache
index e8c1aaaf593..a8d93d98f7f 100644
--- a/lib/templates/email_html.mustache
+++ b/lib/templates/email_html.mustache
@@ -34,5 +34,10 @@
* replyto
* replytoname
* body
+
+ Example context (json):
+ {
+ "body": "Email body"
+ }
}}
{{{body}}}
diff --git a/lib/templates/email_subject.mustache b/lib/templates/email_subject.mustache
index c67afdd263e..8454983e23d 100644
--- a/lib/templates/email_subject.mustache
+++ b/lib/templates/email_subject.mustache
@@ -15,7 +15,7 @@
along with Moodle. If not, see
.
}}
{{!
- @template core/email_html
+ @template core/email_subject
Template for all email subjects.
@@ -31,5 +31,10 @@
* fromname
* replyto
* replytoname
+
+ Example context (json):
+ {
+ "subject": "Email subject"
+ }
}}
{{{subject}}}
diff --git a/lib/templates/email_text.mustache b/lib/templates/email_text.mustache
index 8ffc85a853d..7e537c11f32 100644
--- a/lib/templates/email_text.mustache
+++ b/lib/templates/email_text.mustache
@@ -33,5 +33,10 @@
* replyto
* replytoname
* body
+
+ Example context (json):
+ {
+ "body": "Email body"
+ }
}}
{{{body}}}
diff --git a/lib/templates/help_icon.mustache b/lib/templates/help_icon.mustache
index d73c8c3201c..72b2dcd59b0 100644
--- a/lib/templates/help_icon.mustache
+++ b/lib/templates/help_icon.mustache
@@ -15,7 +15,23 @@
along with Moodle. If not, see
.
}}
{{!
+ @template core/help_icon
+
Help icon.
+
+ Example context (json):
+ {
+ "title": "Help with something",
+ "url": "http://example.org/help",
+ "linktext": "",
+ "icon":{
+ "attributes": [
+ {"name": "class", "value": "iconhelp"},
+ {"name": "src", "value": "../../../pix/help.svg"},
+ {"name": "alt", "value": "Help icon"}
+ ]
+ }
+ }
}}
{{#icon}}{{>core/pix_icon}}{{/icon}}{{#linktext}}{{.}}{{/linktext}}
diff --git a/lib/templates/hover_tooltip.mustache b/lib/templates/hover_tooltip.mustache
index b15e58a1506..0a85c16cdfb 100644
--- a/lib/templates/hover_tooltip.mustache
+++ b/lib/templates/hover_tooltip.mustache
@@ -27,6 +27,10 @@
Context variables required for this template:
* none
+
+ Example context (json):
+ {
+ }
}}