Explorar el Código

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 hace 5 años
padre
commit
edc988b7d5
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      README.md

+ 2
- 0
README.md Ver fichero

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


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

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


Cargando…
Cancelar
Guardar