{{!
    This file is part of Moodle - http://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    @template format_tiles/course_modules

    Example context (json):
    {"coursemodules": [
        {
            "cmid": 123456,
            "modname": "label",
            "modnameDisplay": "",
            "modtitle": "",
            "modtitle_inplaceeditable": "",
            "modResourceType": "",
            "is_label": 1,
            "hasSpacersBefore": 0,
            "previouswaslabel": 0,
            "useSubtiles": 1,
            "isEmbeddedResource": 0,
            "clickable": 1,
            "extraclasses": "",
            "isediting": 1,
            "content": "This is a label",
            "modinstance": "",
            "url": "",
            "description": "",
            "cmeditmenu": "",
            "cmmove": "",
            "availabilityinfo": "",
            "completionInUseForCm": 1,
            "completionIsManual": 1,
            "completionstring": "Click to toggle completion status",
            "completionstate": 1,
            "completionstateInverse": "0"
            }
        ]}
}}
{{#coursemodules}}
    {{>format_tiles/course_module}}
{{/coursemodules}}