The only mustache executable I've found that is installable on macOS is the ruby one, which requires installing RubyGems. This provides an alternative. Here is the help from the executable
OVERVIEW: Mustache is a logic-less templating system for rendering
text files.
The mustache command processes a Mustache template with a context
defined in YAML/JSON. While the template is always loaded from a file
the context can be supplied to the process either from a file or from
stdin.
Examples:
mustache context.yml template.mustache
cat context.yml | mustache - template.mustache
USAGE: mustache <context-filename> <template-filename>
mustache - <template-filename>
ARGUMENTS:
<context-file> Context file
<template-file> Mustache template file
OPTIONS:
-h, --help Show help information.
The only mustache executable I've found that is installable on macOS is the ruby one, which requires installing RubyGems. This provides an alternative. Here is the help from the executable