Michael Jackson
c09c7f54a3
Version 0.7.1
il y a 13 ans
Michael Jackson
829698388c
Merge remote-tracking branch 'upstream/master'
il y a 13 ans
Michael Jackson
e0edb356ae
Fail gracefully on empty template
Fixes #267
il y a 13 ans
Michael Jackson
79b08c3091
Merge pull request #264 from mattsacks/check-falsy
Don't evaluate lambdas that return falsy values as an empty string.
il y a 13 ans
Michael Jackson
1cd18cffbe
Merge pull request #273 from woledzki/master
Performance fix for iphones and ipads
il y a 13 ans
Wojtek
9de23a204f
performance fix for ipads & iphones
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
6bbc85fe26
Merge pull request #256 from julien-c/patch-1
Sections - undefined keys
il y a 13 ans
Michael Jackson
9fb00529d4
Updated with most recent changes
il y a 13 ans
Michael Jackson
26dfacd8be
Add Mustache.compileTokens
Fixes #258
il y a 13 ans
Michael Jackson
658f9e051f
Cache partials by template, not by name
Fixes #257
il y a 13 ans
Michael Jackson
85014a4f6c
Add spec for partial caching issue
il y a 13 ans
Julien Chaumond
03a9da9b93
Update README.md
il y a 13 ans
Michael Jackson
8b19e0ef23
Version 0.7.0
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
1159c236ef
Simplify CommonJS check
il y a 13 ans
Michael Jackson
7489f70790
Fix exports.to_html
il y a 13 ans
Michael Jackson
fea239fb3c
Use String#+= instead of Array#push + Array#join
il y a 13 ans
Michael Jackson
f41bbb1f66
Use exported parse function
il y a 13 ans
Michael Jackson
2bc29ec608
Prevent global var leak
Also, changed order of arguments to internal render function.
il y a 13 ans
Michael Jackson
e45bbb3e87
Better variable names
il y a 13 ans
Michael Jackson
dc6cdf1ae6
Rename Renderer => Writer
il y a 13 ans
Michael Jackson
0c0c6fde3a
Don't use eval
Fixes #207 #210
il y a 13 ans
Chad Weider
dac64709f0
Replace code generation with straight function execution.
This is a strict port of the existing process - there are many opportunities for optimization based on this.
il y a 13 ans
Michael Jackson
0a6d71ca90
Add tests for null view
il y a 13 ans
Michael Jackson
544a32b7a1
Make high-level API same as Renderer API
Also, allow partials to be passed to the function that is returned
for pre-compiled templates. This makes the API more consistent all
around, but comes with the caveat that renderers are much more
aggressive at caching. Now, any time a template or partial is
compiled with the same name as a previously compiled template the
cached version is used.
Fixes #240
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
f5d18caee2
Version 0.6.0
il y a 13 ans
Michael Jackson
bf61bf6199
Add volo support
Fixes #249
il y a 13 ans
Michael Jackson
f7c6a2064d
Track changes in CHANGES
il y a 13 ans
Michael Jackson
4236e61c95
Remove newlines
il y a 13 ans
Michael Jackson
5ab345eddf
Use JavaScript's definition of falsy
Fixes #186
il y a 13 ans
Michael Jackson
a6420e433e
Use exported escaping function
Fixes #244
il y a 13 ans
Michael Jackson
52c7e43a5f
throw inside the if
il y a 13 ans
Michael Jackson
2a51eeffba
Merge pull request #243 from kannix/patch-1
more stringent CommonJS check
il y a 13 ans
Bastian Bleker
2afdb083fc
fixed CommonJS check
QUnit defines module too. If you try to use mustache in a QUnit and AMD environment it won't work
il y a 13 ans
Michael Jackson
6d1954cb5c
Version 0.5.2
il y a 13 ans
Michael Jackson
a160c16d90
Remove ignored argument
il y a 13 ans
Michael Jackson
95d6ca9ada
Move views before templates in examples
il y a 13 ans
Michael Jackson
a8a0392cd6
Added 3-level deep nesting test
Fixes #42
il y a 13 ans
Michael Jackson
2de3ba6537
Fix JSHint warnings
il y a 13 ans
Michael Jackson
dbf609fd37
Merge remote-tracking branch 'upstream/master'
il y a 13 ans
Michael Jackson
9e6943c867
Scanner returns empty string if it can't match
il y a 13 ans
Jan Lehnardt
37b48496b6
Merge pull request #237 from fisch42/master
add .js to main property in package.json
il y a 13 ans
fisch42
fe3de766cd
added .js to main property in package.json
il y a 13 ans
Michael Jackson
008d6c7dcf
Move call to parse into Renderer#compile
il y a 14 ans