Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable mustache validation (Moodle 4.0) #122

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ jobs:
if: ${{ always() }}
run: moodle-plugin-ci savepoints

# Not mustache validation because moodle core template errors.
# - name: Mustache Lint
# if: ${{ always() }}
# run: moodle-plugin-ci mustache
- name: Mustache Lint
if: ${{ always() }}
run: moodle-plugin-ci mustache

- name: Grunt
if: ${{ always() }}
Expand Down
2 changes: 2 additions & 0 deletions templates/local/content.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"hasname": "true"
},
"id": 3,
"anchor": "module-3",
"module": "forum",
"extraclasses": "newmessages"
}
Expand Down Expand Up @@ -86,6 +87,7 @@
"hasname": "true"
},
"id": 4,
"anchor": "module-4",
"module": "assign",
"extraclasses": ""
}
Expand Down
5 changes: 4 additions & 1 deletion templates/local/content/section.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@
"insertafter": true,
"numsections": 42,
"sitehome": false,
"highlightedlabel" : "Highlighted"
"highlightedlabel" : "Highlighted",
"testingsection": true
}
}}
{{#testingsection}}<ul>{{/testingsection}}
<li id="section-{{num}}"
class="section course-section main {{#onlysummary}} section-summary {{/onlysummary}} clearfix
{{#ishidden}} hidden {{/ishidden}} {{#iscurrent}} current {{/iscurrent}}
Expand Down Expand Up @@ -137,3 +139,4 @@
{{> format_onetopic/local/content/section/content }}
{{/ format_onetopic/local/content/section/content }}
</li>
{{#testingsection}}</ul>{{/testingsection}}