Bladeren bron

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 5 jaren geleden
bovenliggende
commit
edc988b7d5
Geen bekende sleutel gevonden voor deze handtekening in de database GPG sleutel-ID: 4AEE18F83AFDEB23
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. +2
    -0
      README.md

+ 2
- 0
README.md Bestand weergeven

@@ -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 () {


Laden…
Annuleren
Opslaan