Преглед на файлове

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

tags/0.4.0
Tom MacWright преди 14 години
родител
ревизия
deedba967e
променени са 1 файла, в които са добавени 7 реда и са изтрити 6 реда
  1. +7
    -6
      mustache-commonjs/mustache.js.tpl.post

+ 7
- 6
mustache-commonjs/mustache.js.tpl.post Целия файл

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

Loading…
Отказ
Запис