Parcourir la source

Merge pull request #130 from tmcw/commonjs-wrap

Condition module.exports to make commonjs version work in browsers and no
tags/0.4.0
Michael Jackson il y a 14 ans
Parent
révision
486cbd6870
1 fichiers modifiés avec 7 ajouts et 6 suppressions
  1. +7
    -6
      mustache-commonjs/mustache.js.tpl.post

+ 7
- 6
mustache-commonjs/mustache.js.tpl.post Voir le fichier

@@ -1,7 +1,8 @@
if (typeof module !== 'undefined' && module.exports) {
exports.name = Mustache.name;
exports.version = Mustache.version;

exports.name = Mustache.name;
exports.version = Mustache.version;

exports.to_html = function() {
return Mustache.to_html.apply(this, arguments);
};
exports.to_html = function() {
return Mustache.to_html.apply(this, arguments);
};
}

Chargement…
Annuler
Enregistrer