Daniel Fagerstrom
3ee2574e21
Used fs.existsSync that doesn't exists in nodejs 0.6 that is used by travis for testing.
преди 13 години
Daniel Fagerstrom
c8005af7c3
Test that use all tests from Mustache specifications. The ones that fails in current mustache.js are skiped to not break the build.
преди 13 години
Daniel Fagerstrom
5e58358574
Include submodule for Mustache specifications.
преди 13 години
Michael Jackson
af935e3441
Simplify test
преди 13 години
Michael Jackson
eb6ceb8b14
Fixed rendering error when using nested higher-order sections
Fixes #274
преди 13 години
Michael Jackson
b9701d58f5
Add failing test for nested higher-order sections
преди 13 години
Michael Jackson
eee8d695fc
Better error reporting
преди 13 години
Michael Jackson
3fea961f06
Use mocha for testing
преди 13 години
Michael Jackson
e0edb356ae
Fail gracefully on empty template
Fixes #267
преди 13 години
Matt Sacks
d59f02f622
Don't evaluate lambdas that return falsy values as an empty string.
Issue: If I create a Mustache lambda to return numbers and I expect 0 to be of
those numbers, I'll instead only receive an empty string for 0 because it
evaluates to falsy.
Fix: Check the result of the lambda to be undefined or null. Only then should
it return the empty string.
преди 13 години
Michael Jackson
26dfacd8be
Add Mustache.compileTokens
Fixes #258
преди 13 години
Michael Jackson
85014a4f6c
Add spec for partial caching issue
преди 13 години
Michael Jackson
afc6e0f1b1
Changed wording of some specs
преди 13 години
Michael Jackson
0ea95746a8
Allow auto-loading of partials
Fixes #247
преди 13 години
Michael Jackson
a5dbb708d7
Fix text token offsets
Text tokens now accurately reflect their content's exact position
in the original template.
преди 13 години
Michael Jackson
0a6d71ca90
Add tests for null view
преди 13 години
Michael Jackson
18e797d47e
Coerce { token types to &
преди 13 години
Michael Jackson
3fb61fc056
More concise token format
преди 13 години
Michael Jackson
be4fd1cc29
Text passed to higher-order sections unrendered
Fixes #187
преди 13 години
Michael Jackson
5ab345eddf
Use JavaScript's definition of falsy
Fixes #186
преди 13 години
Michael Jackson
a8a0392cd6
Added 3-level deep nesting test
Fixes #42
преди 13 години
Michael Jackson
9e6943c867
Scanner returns empty string if it can't match
преди 13 години
Michael Jackson
a7a6e742d1
Use @cweider's quoting function
Also fixed a bug that occurs when using the triple-stache with a key
that contains a closing stache. Fixes #192 .
преди 14 години
Michael Jackson
b8a14eafe9
Strict escaping of ampersands
преди 14 години
Michael Jackson
eda5173061
Remove Ruby dependency
преди 14 години
Michael Jackson
8efd0538cf
This test should not work
преди 14 години
Michael Jackson
fbc66a8140
Another rewrite
- Cleaner separation of responsibilities in the code between
scanning, parsing, compiling, and rendering functions.
- Much faster
преди 14 години
Michael Jackson
f127f48bf4
Move all tests to spec directory
преди 14 години
Michael Jackson
0e49002087
Add node to test suite
преди 14 години
Michael Jackson
9867b8d917
Clean up runner.js
преди 14 години
Michael Jackson
89863d714b
Use rake/clean
преди 14 години
Jan Lehnardt
671f8eaa52
add SpiderMonkey test runner
преди 14 години
Ben Cherry
4fd1b8bd3b
Check for existence of engines before running tests, better logging
преди 14 години
Ben Cherry
58bf8da9ba
re-link jsc and add a bit more doc
преди 15 години
Ben Cherry
deff91a4e0
made gettext return the right thing for translation-hint mode
преди 15 години
Ben Cherry
5467067bee
remove commented out lines from run_js
преди 15 години
Ben Cherry
373e263973
moved new tests into new examples/* files
преди 15 години
Ben Cherry
b15c6fb842
tests for brokenness, now in Rhino too
преди 15 години
Ben Cherry
d5e54b409a
works with empty sections
преди 15 години
Ben Cherry
5dc7c74e9b
failing tests
преди 15 години
Ben Cherry
6a9da0581a
stubbed _() for tests, and basic i18n test
преди 15 години
Ben Cherry
99afe5fea7
don't double render
преди 15 години
Jan Lehnardt
328724ad43
whitespace
преди 16 години
Alexander Lang
c12ba296ab
added testcase for issue #26
преди 16 години
Jan Lehnardt
2c8857e84a
remove extra semicolon
преди 16 години
Jan Lehnardt
272fd0fc1f
fix test case
преди 16 години
Chris Anderson
a354b55156
more send fun goodness
преди 16 години
Chris Anderson
f864a27cb9
make the tests also test a generic send function (reveals failures)
преди 16 години
Jan Lehnardt
0bb4776def
mustache compat: Don't barf on unknown variables.
преди 16 години
Paul J. Davis
895e741234
Fix error message consistency.
преди 16 години