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
denniskuczynski
e20591b49d
Add @first and @last data variables to #each helper resolving Issue #483
2013-10-12 16:43:17 -05:00
kpdecker
4d31df2f30
Update logger interface to expose prior API
2013-10-12 15:41:38 -05:00
kpdecker
4d7124f6bf
Remove global Handlebars references
2013-10-09 03:21:21 -07:00
kpdecker
6a23391a9a
Break exception class out into a standalone module
2013-10-01 21:14:18 -05:00
kpdecker
27d9010974
Update logger for es6 modules
2013-09-30 23:52:44 -05:00
kpdecker
cb0c45b29f
Merge branch 'master' into es6-modules
...
Conflicts:
Gruntfile.js
Rakefile
dist/handlebars.js
dist/handlebars.runtime.js
lib/handlebars.js
lib/handlebars/base.js
lib/handlebars/runtime.js
lib/handlebars/utils.js
package.json
2013-09-02 18:19:18 -05:00
kpdecker
192887cedc
Merge commit '87b5d4ee61605b026506e92c9e8873d867c5f150' into es6-modules
...
Conflicts:
dist/handlebars.js
dist/handlebars.runtime.js
lib/handlebars/base.js
lib/handlebars/utils.js
2013-09-02 16:19:28 -05:00
kpdecker
6e6acaac0d
Unify isFunction/isArray handling
2013-08-24 22:20:12 -05:00
kpdecker
0af54b1142
Use extend rather than prototype for createFrame
...
Using prototype has a large performance impact for the common case of a
sparse set of private variable data points. Rather than incurring the
overhead of creating and walking the prototype tree for this, performing
an extend by copy.
2013-08-24 12:10:10 -05:00
Tuomas Palenius
db47593e34
Fix #597 . If-helper doesn't anymore consider 0 as falsy value.
2013-08-15 06:05:11 +03:00
Yehuda Katz
5f664dd78b
Make the Handlebars environment into an object
...
The idea is that the environment wraps up the mutable stuff in
Handlebars (like the helpers) and that you could theoretically create a
new one at any time and pass it in to Handlebars.template.
Every test makes a new environment and uses it in template compilation.
2013-07-26 16:50:37 +00:00
Yehuda Katz
f5c8484ea0
Further progress towards modularization.
...
At this point, I have only 2 fails in the Node build, but I'm doing a
bunch of manual stuff locally and still have a bunch of hacks.
2013-07-24 05:03:27 +00:00
Yehuda Katz
da130f7745
Building an AMD file
2013-07-16 19:10:37 +00:00
Yehuda Katz
88ee4757e7
Initial work on ES6 modules
2013-07-01 13:59:58 -07:00
kpdecker
f63b226b76
Update to 1.0.0 final
2013-05-31 14:16:45 -04:00
kpdecker
16fd601a5c
Merge global and passed helpers and partials
2013-05-31 13:12:06 -04:00
kpdecker
c540d7186a
Allow function arguments to with and each
...
Via @mcdan
Fixes #239
2013-05-29 12:23:55 -04:00
kpdecker
293672432b
improve error message on missing helper
...
Via @stefanpenner
Fixes #523
2013-05-29 10:57:48 -04:00
kpdecker
533be694b5
Use better variable name
2013-05-21 13:12:11 -05:00
kpdecker
ddc4d31861
Rev to rc4
2013-05-13 23:07:29 -05:00