Browse Source

Improve usage example in README.md (#778)

By showing explicitly how/where `Mustache` comes from in that
specific scenario, where CommonJS is assume to be available,
either provided by Node.js or a build tool like webpack etc.

For the record, it could also be `import` if the using project
uses ES Modules, as we've recently exposed native ES Modules
support as well.
pull/779/head
Nate Sire GitHub 3 years ago
parent
commit
edc988b7d5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      README.md

+ 2
- 0
README.md View File

@@ -37,6 +37,8 @@ $ npm install mustache --save
Below is a quick example how to use mustache.js:

```js
var Mustache = require('mustache');

var view = {
title: "Joe",
calc: function () {


Loading…
Cancel
Save