Pārlūkot izejas kodu

Condition module.exports to make commonjs version work in browsers and not throw an error.

tags/0.4.0
Tom MacWright pirms 14 gadiem
vecāks
revīzija
deedba967e
1 mainītis faili ar 7 papildinājumiem un 6 dzēšanām
  1. +7
    -6
      mustache-commonjs/mustache.js.tpl.post

+ 7
- 6
mustache-commonjs/mustache.js.tpl.post Parādīt failu

@@ -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);
};
}

Notiek ielāde…
Atcelt
Saglabāt