-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #272 from stronk7/str_helper_url_compliant
Ensure the str helper is url/href compliant
- Loading branch information
Showing
3 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From d64cf216e6f0cdfed617b538fde5b4e193e7da88 Mon Sep 17 00:00:00 2001 | ||
From: "Eloy Lafuente (stronk7)" <stronk7@moodle.org> | ||
Date: Tue, 11 Jul 2023 15:16:18 +0200 | ||
Subject: [PATCH] MDL-12345: test str helper | ||
|
||
--- | ||
lib/templates/test_str.mustache | 11 +++++++++++ | ||
1 file changed, 11 insertions(+) | ||
create mode 100644 lib/templates/test_str.mustache | ||
|
||
diff --git a/lib/templates/test_str.mustache b/lib/templates/test_str.mustache | ||
new file mode 100644 | ||
index 00000000000..cb7a906deb9 | ||
--- /dev/null | ||
+++ b/lib/templates/test_str.mustache | ||
@@ -0,0 +1,11 @@ | ||
+{{! | ||
+ @template core/test_str | ||
+ | ||
+ Example context (json): | ||
+ { | ||
+ } | ||
+ | ||
+}} | ||
+<p>{{#str}} string, component {{/str}}</p> | ||
+<label data-type="{{#str}} string, component {{/str}}'">Label</label> | ||
+<a href="{{#str}} string, component {{/str}}'">Link</a> | ||
-- | ||
2.40.0 | ||
|