Kaynağa Gözat

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 14 yıl önce
ebeveyn
işleme
486cbd6870
1 değiştirilmiş dosya ile 7 ekleme ve 6 silme
  1. +7
    -6
      mustache-commonjs/mustache.js.tpl.post

+ 7
- 6
mustache-commonjs/mustache.js.tpl.post Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet