hummingbird-project / swift-mustache

Mustache templating engine
Apache License 2.0
21 stars 2 forks source link

Add executable that processes a mustache template #41

Closed adam-fowler closed 3 months ago

adam-fowler commented 3 months ago

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.