kpdecker
cfbef2585d
Fail over to console.log if lacking console method
...
This improves logger resiliency under older browsers.
2015-02-07 13:23:10 -06:00
kpdecker
95421271e3
Change default log level to info
...
Eventually we want to fix this API so that you can provide per-instance levels, etc but for now this is a quick fix.
Fixes wycats/handlebars-site#91
2015-02-07 12:31:19 -06:00
kpdecker
396795c983
Implement block parameters
...
Fixes #907
2014-12-26 00:31:57 -06:00
kpdecker
3a9440f954
Make each helper data uniform
...
Provide @key and @last value for all forms of iteration.
Fixes #910
2014-11-26 08:02:55 -06:00
Kevin Decker
b5f03c95ab
Merge pull request #870 from max-b/master
...
Registering undefined partial throws exception.
2014-11-08 17:43:41 -06:00
Alex Jeng
4aab967796
Capitalization change in comments for consistency
2014-09-23 11:59:30 -07:00
Maxb
a0e2e200d9
Registering undefined partial throws exception.
2014-09-19 11:35:16 -07:00
kpdecker
1eb2b04aa1
v2.0.0
2014-09-01 21:28:59 -05:00
kpdecker
58fb258016
Cleanup var names slightly
2014-08-27 01:49:23 -05:00
kpdecker
cee52ea68f
v2.0.0-beta.1
2014-08-26 18:32:15 -05:00
kpdecker
ca1486b960
Prune unused code
2014-08-25 22:39:17 -05:00
kpdecker
36f00db073
Fix compiler version tag
2014-08-25 21:13:31 -05:00
kpdecker
64f422b57f
Rev runtime version
2014-08-25 13:49:20 -05:00
kpdecker
9f07a34955
Additional test coverage
2014-08-15 00:05:37 -05:00
kpdecker
6f22ec1e01
Remove nested function eval in blockHelperMissing
...
This only worked when a function returned a function, which was then evaluated. This seems like unexpected behavior so this was dropped.
2014-08-14 23:10:17 -05:00
kpdecker
4d0e3c98eb
Drop unused registerHelper inverse parameter
2014-08-14 12:25:58 -05:00
kpdecker
cb22ee5681
Increase test coverage a touch
2014-08-14 12:25:35 -05:00
Dan Manges
2bdfd2a31d
Support inverse sections on the with helper
2014-07-16 19:37:01 +00:00
kpdecker
7172d167dd
Provide clear throw on {{#each}}
...
Fixes #773
2014-05-27 10:54:28 -04:00
kpdecker
efad61b1b7
v2.0.0-alpha.4
2014-05-19 23:15:50 -05:00
kpdecker
f419838362
v2.0.0-alpha.3
2014-05-19 22:29:25 -05:00
kpdecker
04c312649b
v2.0.0-alpha.2
2014-03-06 01:26:26 -06:00
kpdecker
a5ff1f3d22
vv2.0.0-alpha.1
2014-02-10 02:11:07 -06:00
kpdecker
6da3c31494
Update compiler revision info
2014-02-10 01:50:32 -06:00
kpdecker
16f135835e
Add support for depthed resolution of data fields
2014-02-09 18:35:22 -06:00
kpdecker
306feb497c
Implement lookup helper
2014-02-09 17:22:18 -06:00
kpdecker
311be67bde
Add partial and helper unregister APIs
...
Fixes #669
2014-01-18 09:22:29 -06:00
kpdecker
5a0bcb932d
Fix handler execution in nondata/nonid mode
2014-01-17 23:24:35 -06:00
kpdecker
49fcf10de2
Add contextPath tracking in builtin helpers
2014-01-17 23:15:18 -06:00
kpdecker
fe4880feaa
Allow implicit context iteration with each
...
Fixes #671
2014-01-17 20:13:00 -06:00
Blake Embrey
13633e7896
Improve usefulness of extend util, properly use namespace property, update setup options to use a hash helper.
2014-01-16 21:24:26 +10:00
kpdecker
0f328f375e
Include name option for all helper calls
...
All helper calls will have access to `options.name` which is the first id value of the mustache operation.
As part of this the helperMissing call has been simplified to remove the indexed name in order to optimize the call. This is a breaking change.
Fixes #634
2014-01-06 16:07:56 -06:00
kpdecker
0c6829f8af
v1.3.0
2014-01-01 22:10:31 -06:00
kpdecker
6e4e1f8404
Include line info in compiler thrown exceptions
...
Fixes #636
2014-01-01 19:14:51 -06:00
kpdecker
1c0614bd88
v1.2.1
2013-12-26 16:25:42 -06:00
kpdecker
096b8ccd2e
v1.2.0
2013-12-23 21:39:46 -06:00
kpdecker
f06a9dc1f0
Use strict comparison for first
2013-12-22 18:45:57 -06:00
kpdecker
45ab2bb218
Merge branch 'patch-1' of github.com:cgp/handlebars.js into cgp-patch-1
2013-12-22 18:27:10 -06:00
kpdecker
f17cb3ecac
Run jshint on output
...
Allows us to execute jshint in non-forced mode.
2013-12-01 15:40:08 -06:00
kpdecker
cc16bc47dd
Add missing semicolon
2013-12-01 11:37:32 -06:00
Chris Pall
e8954b3488
Update base.js
...
Give users the index for properties. When I am rendering a radio button I use key-value pairs, but I can't use either as unique identifiers because they likely contain invalid identifier characters. I added "first" as an index as well, but have no particular use case for first. Since there is no way to detect "last", I didn't add that property.
2013-11-22 00:41:25 -05:00
kpdecker
47d13cb23c
v1.1.2
2013-11-05 18:10:06 -06:00
kpdecker
affbcbb79e
Unify isArray/isFunction/toString implementations
...
Restores Array.isArray polyfill for all use cases.
Fixes #645
2013-11-05 18:07:33 -06:00
kpdecker
09cdc19a21
v1.1.1
2013-11-04 10:48:59 -06:00
kpdecker
29e3858d21
v1.1.0
2013-11-03 21:25:46 -06:00
kpdecker
84049bf0c5
Add includeZero flag to if conditional
...
Allows for users who desire non-falsy handling of numbers to utilize if while maintaining the legacy if behavior.
Fixes #608
2013-10-14 21:38:19 -05:00
kpdecker
9218f2e1ef
Fix improper stash
2013-10-14 14:49:55 -05:00
kpdecker
15e1eb36ca
Fix case typo
2013-10-14 14:38:10 -05:00
kpdecker
15500aef70
Access utils methods via modules
...
Allows for monkey patching (under ES5 systems). This somewhat mirrors
the proposed behavior in https://github.com/square/es6-module-transpiler/issues/37
but applies the behavior via manual code changes rather than compiler
support.
2013-10-14 11:50:18 -05:00
Dennis Kuczynski
3150ef15da
Remove uncessary ? operator when returning boolean values for @first and @last
2013-10-12 16:43:46 -05:00