MDL-65758 library: Add Moodle modifications for Mustache