Selaa lähdekoodia

WIP: Slimmer fat-stride parser.

tags/0.5.0-vsc
Sahab Yazdani 15 vuotta sitten
vanhempi
commit
e0fb5d7ee2
2 muutettua tiedostoa jossa 399 lisäystä ja 665 poistoa
  1. +394
    -660
      mustache.js
  2. +5
    -5
      test/unit.js

+ 394
- 660
mustache.js
File diff suppressed because it is too large
Näytä tiedosto


+ 5
- 5
test/unit.js Näytä tiedosto

@@ -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(


Loading…
Peruuta
Tallenna