Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Templates for your CLI

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .npmignore
Octocat-spinner-32 Cakefile
Octocat-spinner-32 README.md
Octocat-spinner-32 TODO
Octocat-spinner-32 package.json
README.md

mustard

Mustard uses hogan.js to give you mustache templates for your CLI applications.

Install

$ npm install mustard

Why?

Writing applications is great, but getting your dynamic output to format correctly isn't.

How to

hello.mu

{{#col1}}Hello{{/col1}} my name is {{#red}}{{name}}{{/red}}.

hello.js

var mustard = require('mustard');
var util = require('util');

var output = mustard('hello.mu', { name: 'Josh' }, {
  col1: {
    width: 20
  },
  red: {
    color: 'red'
  }
});

util.puts(output);

stdout

Hello                my name is [[31mJosh^[[39m.

License

MIT LICENSE

Something went wrong with that request. Please try again.