Hi Dave,
What theme are you using please?
But.... if you have a renderer in the activity that follows the standard inheritance tree for renderers that would have the 'get_mustache()' method then you can override that to use your own template loader that could cope with the partial format:
{{> theme_boost/core_form/element-button }}
as I've done something similar (and published on Moodle.org in my Foundation theme), see:
- https://github.com/gjb2048/moodle-theme_foundation/blob/master/classes/output/core/output/mustache_template_finder.php
- https://github.com/gjb2048/moodle-theme_foundation/blob/master/classes/output/mustache_engine.php#L74
- https://github.com/gjb2048/moodle-theme_foundation/blob/master/classes/output/core_renderer.php#L39
- https://github.com/moodle/moodle/blob/MOODLE_35_STABLE/lib/outputrenderers.php#L479
- https://github.com/moodle/moodle/blob/MOODLE_35_STABLE/lib/outputrenderers.php#L53
- https://github.com/moodle/moodle/blob/MOODLE_35_STABLE/lib/outputrenderers.php#L80
G