Skip to content

Commit

Permalink
Merge pull request #122 from james-cnz/moodle_40_mustache_validation
Browse files Browse the repository at this point in the history
Re-enable mustache validation (Moodle 4.0)
  • Loading branch information
davidherney committed Jan 20, 2023
2 parents bba453d + 5c0c0b6 commit ea46611
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,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}}

0 comments on commit ea46611

Please sign in to comment.