Skip to content

Commit 419e26c

Browse files
authored
Merge pull request #41 from kabalin/mustache-js
Add JS snippet to fixture mustache template to test JS linting.
2 parents d32fbdd + ba8ab75 commit 419e26c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Fixture/moodle-local_travis/templates/loading.mustache

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,9 @@
3434
{}
3535
}}
3636
<span class="loading-icon">{{#pix}} y/loading, core, {{#str}} loading {{/str}} {{/pix}}</span>
37+
38+
{{#js}}
39+
require(['jquery'], function($) {
40+
$('.loading-icon').css("color", "red");
41+
});
42+
{{/js}}

0 commit comments

Comments
 (0)