Chris Buckley
d9aa703014
Only access properties of objects on Context.lookup
hace 12 años
Lakshan Perera
42ec324c8f
When rendering partials, pass the partial template instead of the original template.
hace 12 años
Michael Jackson
da16eada83
Allow a string to act as context
Fixes #321
hace 12 años
Michael Jackson
411edae061
Fix [object Object] errors
Fixes #322
Fixes #330
Fixes #331
Fixes #334
hace 12 años
Michael Jackson
af935e3441
Simplify test
hace 13 años
Michael Jackson
b9701d58f5
Add failing test for nested higher-order sections
hace 13 años
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.
hace 13 años
Michael Jackson
0a6d71ca90
Add tests for null view
hace 13 años
Michael Jackson
be4fd1cc29
Text passed to higher-order sections unrendered
Fixes #187
hace 13 años
Michael Jackson
5ab345eddf
Use JavaScript's definition of falsy
Fixes #186
hace 13 años
Michael Jackson
a8a0392cd6
Added 3-level deep nesting test
Fixes #42
hace 13 años
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 .
hace 14 años
Michael Jackson
b8a14eafe9
Strict escaping of ampersands
hace 14 años
Michael Jackson
8efd0538cf
This test should not work
hace 14 años
Michael Jackson
fbc66a8140
Another rewrite
- Cleaner separation of responsibilities in the code between
scanning, parsing, compiling, and rendering functions.
- Much faster
hace 14 años