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

Copied from file_template_expand.cf
This does not match the implementation, it shouldn't have ```_type```