Chris Buckley
d9aa703014
Only access properties of objects on Context.lookup
il y a 12 ans
Lakshan Perera
42ec324c8f
When rendering partials, pass the partial template instead of the original template.
il y a 12 ans
Michael Jackson
c4b345f14c
Smaller API surface area
Removed cache* functions altogether. mustache.parse is all that's
really needed.
il y a 12 ans
Michael Jackson
b114120741
Major reorganization and cleanup
il y a 12 ans
Michael Jackson
da16eada83
Allow a string to act as context
Fixes #321
il y a 12 ans
Michael Jackson
411edae061
Fix [object Object] errors
Fixes #322
Fixes #330
Fixes #331
Fixes #334
il y a 12 ans
Michael Jackson
257c235661
Add back mustache/spec submodule
il y a 12 ans
Michael Jackson
207b76a880
Fix some Rake tasks, cleanup Rakefile
il y a 12 ans
Daniel Fagerstrom
3ee2574e21
Used fs.existsSync that doesn't exists in nodejs 0.6 that is used by travis for testing.
il y a 13 ans
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.
il y a 13 ans
Daniel Fagerstrom
5e58358574
Include submodule for Mustache specifications.
il y a 13 ans
Michael Jackson
af935e3441
Simplify test
il y a 13 ans
Michael Jackson
eb6ceb8b14
Fixed rendering error when using nested higher-order sections
Fixes #274
il y a 13 ans
Michael Jackson
b9701d58f5
Add failing test for nested higher-order sections
il y a 13 ans
Michael Jackson
eee8d695fc
Better error reporting
il y a 13 ans
Michael Jackson
3fea961f06
Use mocha for testing
il y a 13 ans
Michael Jackson
e0edb356ae
Fail gracefully on empty template
Fixes #267
il y a 13 ans
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.
il y a 13 ans
Michael Jackson
26dfacd8be
Add Mustache.compileTokens
Fixes #258
il y a 13 ans
Michael Jackson
85014a4f6c
Add spec for partial caching issue
il y a 13 ans
Michael Jackson
afc6e0f1b1
Changed wording of some specs
il y a 13 ans
Michael Jackson
0ea95746a8
Allow auto-loading of partials
Fixes #247
il y a 13 ans
Michael Jackson
a5dbb708d7
Fix text token offsets
Text tokens now accurately reflect their content's exact position
in the original template.
il y a 13 ans
Michael Jackson
0a6d71ca90
Add tests for null view
il y a 13 ans
Michael Jackson
18e797d47e
Coerce { token types to &
il y a 13 ans
Michael Jackson
3fb61fc056
More concise token format
il y a 13 ans
Michael Jackson
be4fd1cc29
Text passed to higher-order sections unrendered
Fixes #187
il y a 13 ans
Michael Jackson
5ab345eddf
Use JavaScript's definition of falsy
Fixes #186
il y a 13 ans
Michael Jackson
a8a0392cd6
Added 3-level deep nesting test
Fixes #42
il y a 13 ans
Michael Jackson
9e6943c867
Scanner returns empty string if it can't match
il y a 13 ans
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 .
il y a 14 ans
Michael Jackson
b8a14eafe9
Strict escaping of ampersands
il y a 14 ans
Michael Jackson
eda5173061
Remove Ruby dependency
il y a 14 ans
Michael Jackson
8efd0538cf
This test should not work
il y a 14 ans
Michael Jackson
fbc66a8140
Another rewrite
- Cleaner separation of responsibilities in the code between
scanning, parsing, compiling, and rendering functions.
- Much faster
il y a 14 ans
Michael Jackson
f127f48bf4
Move all tests to spec directory
il y a 14 ans
Michael Jackson
0e49002087
Add node to test suite
il y a 14 ans
Michael Jackson
9867b8d917
Clean up runner.js
il y a 14 ans
Michael Jackson
89863d714b
Use rake/clean
il y a 14 ans
Jan Lehnardt
671f8eaa52
add SpiderMonkey test runner
il y a 14 ans
Ben Cherry
4fd1b8bd3b
Check for existence of engines before running tests, better logging
il y a 14 ans
Ben Cherry
58bf8da9ba
re-link jsc and add a bit more doc
il y a 15 ans
Ben Cherry
deff91a4e0
made gettext return the right thing for translation-hint mode
il y a 15 ans
Ben Cherry
5467067bee
remove commented out lines from run_js
il y a 15 ans
Ben Cherry
373e263973
moved new tests into new examples/* files
il y a 15 ans
Ben Cherry
b15c6fb842
tests for brokenness, now in Rhino too
il y a 15 ans
Ben Cherry
d5e54b409a
works with empty sections
il y a 15 ans
Ben Cherry
5dc7c74e9b
failing tests
il y a 15 ans
Ben Cherry
6a9da0581a
stubbed _() for tests, and basic i18n test
il y a 15 ans
Ben Cherry
99afe5fea7
don't double render
il y a 15 ans