Parcourir la 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 il y a 5 ans
Parent
révision
edc988b7d5
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. +2
    -0
      README.md

+ 2
- 0
README.md Voir le fichier

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


Chargement…
Annuler
Enregistrer