Michael Jackson
e4a68c9e49
Version 0.8.0
12 лет назад
Michael Jackson
99c1149aff
Small tweaks
12 лет назад
Michael Jackson
ff6a093981
Small tweaks
12 лет назад
Michael Jackson
c4b345f14c
Smaller API surface area
Removed cache* functions altogether. mustache.parse is all that's
really needed.
12 лет назад
Michael Jackson
b114120741
Major reorganization and cleanup
12 лет назад
Michael Jackson
b626d12395
Version 0.7.3
12 лет назад
Michael Jackson
b60aa6f0f1
Pre-cache view for dot references
12 лет назад
Michael Jackson
da16eada83
Allow a string to act as context
Fixes #321
12 лет назад
Michael Jackson
411edae061
Fix [object Object] errors
Fixes #322
Fixes #330
Fixes #331
Fixes #334
12 лет назад
Michael Jackson
48fb97b4ef
Add isFunction helper
12 лет назад
Michael Jackson
397e56dabe
Fix JSHint errors
12 лет назад
Michael Jackson
512b2e8df1
Simplify some logic
12 лет назад
Michael Jackson
0be4e2b944
Rename variable
13 лет назад
Michael Jackson
f8bfbd2820
Don't use module object in CommonJS
Fixes #308
Fixes #285
13 лет назад
Michael Jackson
642227daa7
Small tweaks
13 лет назад
Michael Jackson
8a7123706f
Group all exports
13 лет назад
Michael Jackson
3aa093391b
Use empty object as default view
Fixes #238
13 лет назад
Michael Jackson
2ab776c3a5
Locally cache some references
13 лет назад
Michael Jackson
a5d0199541
Style tweaks
13 лет назад
Michael Jackson
f6496c8c38
Style tweaks, added comments
13 лет назад
Michael Jackson
3cdb300ccb
Use delete instead of splice
13 лет назад
Michael Jackson
320ae73475
Style tweaks
13 лет назад
Michael Jackson
f8eb6e8f38
Remove Context#clearCache
13 лет назад
Michael Jackson
49de778abb
Inline rendering functions
13 лет назад
Michael Jackson
d5bf677431
Remove unnecessary line
13 лет назад
Michael Jackson
a8b6a96a83
Style tweaks
13 лет назад
Michael Jackson
0d8b00fa67
Allow compiling of tokens without template
This commit allows pre-compiled templates to be executed without
keeping the original template around. It is still required when using
higher-order functions.
Fixes #262
13 лет назад
Michael Jackson
740fd72d26
Version 0.7.2
13 лет назад
Michael Jackson
eb6ceb8b14
Fixed rendering error when using nested higher-order sections
Fixes #274
13 лет назад
Michael Jackson
eee8d695fc
Better error reporting
13 лет назад
busticated
d90d37f25f
handle case where exports is null
13 лет назад
busticated
fa214bd660
clean up and standardize UMD wrapper
13 лет назад
Michael Jackson
51eec96abc
Style tweaks
13 лет назад
Michael Jackson
c09c7f54a3
Version 0.7.1
13 лет назад
Michael Jackson
e0edb356ae
Fail gracefully on empty template
Fixes #267
13 лет назад
Wojtek
9de23a204f
performance fix for ipads & iphones
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
658f9e051f
Cache partials by template, not by name
Fixes #257
13 лет назад
Michael Jackson
8b19e0ef23
Version 0.7.0
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
1159c236ef
Simplify CommonJS check
13 лет назад
Michael Jackson
7489f70790
Fix exports.to_html
13 лет назад
Michael Jackson
fea239fb3c
Use String#+= instead of Array#push + Array#join
13 лет назад
Michael Jackson
f41bbb1f66
Use exported parse function
13 лет назад
Michael Jackson
2bc29ec608
Prevent global var leak
Also, changed order of arguments to internal render function.
13 лет назад
Michael Jackson
e45bbb3e87
Better variable names
13 лет назад
Michael Jackson
dc6cdf1ae6
Rename Renderer => Writer
13 лет назад
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.
13 лет назад