Skip to content

Mustache Templates

Emil edited this page Dec 9, 2024 · 23 revisions

Moodle's documentation for templates

Using Mustache in Moodle

Mustache is used to display most of the HTML in Moodle. Mustache templates are smart as they allow you to write HTML as normal, but you can also include things from the context which is delivered by Moodles PHP files, in our case these files are the files in the classes/output directory. (See how these tie together in: Pages in the Project

Clone this wiki locally