Skip to content

Commit edc988b

Browse files
authored
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.
1 parent bd29972 commit edc988b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ $ npm install mustache --save
3737
Below is a quick example how to use mustache.js:
3838

3939
```js
40+
var Mustache = require('mustache');
41+
4042
var view = {
4143
title: "Joe",
4244
calc: function () {

0 commit comments

Comments
 (0)