Explorar el Código

WIP: Slimmer fat-stride parser.

tags/0.5.0-vsc
Sahab Yazdani hace 15 años
padre
commit
e0fb5d7ee2
Se han modificado 2 ficheros con 399 adiciones y 665 borrados
  1. +394
    -660
      mustache.js
  2. +5
    -5
      test/unit.js

+ 394
- 660
mustache.js
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 5
- 5
test/unit.js Ver fichero

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


Cargando…
Cancelar
Guardar