beard

More than a mustache.

Beard

More than a mustache.

Released under a MIT license.

  • Clean syntax
Beard.render(template, view);

template - (string) A string to be parsed and populated by the view object.

view - (object) An object of data and/or methods which will populate the template string.

var Beard = require('beard');

var view = {
    noun: "Beards",
    makeUpperCase: function(str){
        return str.toUpperCase();
    }
};

var html = Beard.render('{noun} are {makeUpperCase('awesome')}!', view);

More docs later...

  • keeto (Mark Obcena) for the parser/compiler
  • shinetech (Danny Brain) for syntax ideas