Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
More than a mustache.
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
lib
.npmignore
LICENSE
README.md
package.json

README.md

Beard

More than a mustache.

Released under a MIT license.

Features

  • Clean syntax

Usage

Syntax

Beard.render(template, view);

Arguments

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.

Example

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...

Thanks to

  • keeto (Mark Obcena) for the parser/compiler
  • shinetech (Danny Brain) for syntax ideas
Something went wrong with that request. Please try again.