Skip to content

Commit ba8ab75

Browse files
committed
Add JS to mustache template to test linting.
1 parent d32fbdd commit ba8ab75

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)