Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 911 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 911 Bytes

Mustache

Command line tool for rendering Mustache templates

Overview

Mustache is a logic-less templating system for rendering text files.

The mustache command line tool 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.

Usage

Render a mustache template file template.mustache with context defined in context.yml in YAML or JSON.

mustache context.yml template.mustache

Alternatively to render a mustache template file template.mustache with context read from stdin, replace the context file name with -.

cat context.yml | mustache - template.mustache

Install

Using mint

Use mint to build and install mustache.

mint install hummingbird-project/swift-mustache-cli