Skip to content

Commit

Permalink
Add note about usage in CommonJS
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Jan 14, 2012
1 parent 057bc20 commit 9240db1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -45,6 +45,14 @@ In this example, the `Mustache.render` function takes two parameters: 1) the
[mustache](http://mustache.github.com/) template and 2) a `view` object that
contains the data and code needed to render the template.

### CommonJS

mustache.js is usable without any modification in both browsers and [CommonJS](http://www.commonjs.org/)
environments like [node.js](http://nodejs.org/). To use it as a CommonJS module,
simply require the file, like this:

var Mustache = require("mustache");

## Templates

A [mustache](http://mustache.github.com/) template is a string that contains
Expand Down

0 comments on commit 9240db1

Please sign in to comment.