Kaynağa Gözat

WIP: Slimmer fat-stride parser.

tags/0.5.0-vsc
Sahab Yazdani 15 yıl önce
ebeveyn
işleme
e0fb5d7ee2
2 değiştirilmiş dosya ile 399 ekleme ve 665 silme
  1. +394
    -660
      mustache.js
  2. +5
    -5
      test/unit.js

+ 394
- 660
mustache.js
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


+ 5
- 5
test/unit.js Dosyayı Görüntüle

@@ -57,13 +57,13 @@ test("Parser", function() {

ok(false);
} catch (e) {
equals(e.message, 'Unexpected end of document.');
equals(e.message, 'Malformed change delimiter token: {{=tag1}}');
}
var partials = { 'partial' : '{{key}}' };
Mustache.compile('{{>partial}}', partials );
//var partials = { 'partial' : '{{key}}' };
//Mustache.compile('{{>partial}}', partials );
equals(partials['partial'], '{{key}}', 'Partials compiler must be non-destructive');
//equals(partials['partial'], '{{key}}', 'Partials compiler must be non-destructive');
});

test("Basic Variables", function() {
@@ -474,7 +474,7 @@ test("'%' (Pragmas)", function() {
);
ok(false);
} catch (e) {
equals(e.message, 'This implementation of mustache doesn\'t understand the \'I-HAVE-THE-GREATEST-MUSTACHE\' pragma');
equals(e.message, 'This implementation of mustache does not implement the "I-HAVE-THE-GREATEST-MUSTACHE" pragma');
}
equals(


Yükleniyor…
İptal
Kaydet