Fixes #5378: We need a method for the mustache template

Copied from file_template_expand.cf
These last comments are not up to date with the classes that will be generated