mustard

0.0.4 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    1
  • 0.0.3
    1

Package Sidebar

Install

npm i mustard

Weekly Downloads

2

Version

0.0.4

License

none

Last publish

Collaborators

  • goatslacker