Просмотр исходного кода

WIP: Slimmer fat-stride parser.

tags/0.5.0-vsc
Sahab Yazdani 15 лет назад
Родитель
Сommit
e0fb5d7ee2
2 измененных файлов: 399 добавлений и 665 удалений
  1. +394
    -660
      mustache.js
  2. +5
    -5
      test/unit.js

+ 394
- 660
mustache.js
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 5
- 5
test/unit.js Просмотреть файл

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


Загрузка…
Отмена
Сохранить