summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/base.js
Commit message (Collapse)AuthorAgeFilesLines
* v4.0.4v4.0.4kpdecker2015-10-291-1/+1
|
* Use template string :sparkles: for error message and double-quotes for ↵Mark Christian2015-10-191-1/+1
| | | | quoting partial name
* Include partial name in 'undefined partial' exception messageMark Christian2015-10-191-1/+1
|
* v4.0.3v4.0.3kpdecker2015-09-231-1/+1
|
* v4.0.2v4.0.2kpdecker2015-09-041-1/+1
|
* v4.0.1v4.0.1kpdecker2015-09-021-1/+1
|
* v4.0.0v4.0.0kpdecker2015-09-011-1/+1
|
* Rev runtime compiler revisionkpdecker2015-09-011-2/+3
|
* Implement decorator environment and registrationkpdecker2015-08-221-1/+16
|
* Move logger into separate modulekpdecker2015-08-011-21/+3
|
* Move helpers into separate moduleskpdecker2015-08-011-173/+6
|
* Fix with operator in no @data modekpdecker2015-08-011-1/+1
|
* Allow empty key name in each iterationkpdecker2015-08-011-1/+1
| | | Fixes #1021
* Add with block parameter supportkpdecker2015-08-011-3/+6
| | | | Fixes #1042
* Fix typoSaleh Batati2015-07-301-1/+1
|
* Update for let and optional parameterskpdecker2015-04-201-22/+25
|
* Add full support for es6kpdecker2015-04-161-31/+31
| | | | | | | | Converts the tool chain to use babel, eslint, and webpack vs. the previous proprietary solutions. Additionally begins enforcing additional linting concerns as well as updates the code to reflect these rules. Fixes #855 Fixes #993
* v3.0.1v3.0.1kpdecker2015-03-241-1/+1
|
* v3.0.0v3.0.0kpdecker2015-02-101-1/+1
|
* Fail over to console.log if lacking console methodkpdecker2015-02-071-4/+2
| | | This improves logger resiliency under older browsers.
* Change default log level to infokpdecker2015-02-071-1/+1
| | | | | | 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
* Implement block parameterskpdecker2014-12-261-1/+5
| | | Fixes #907
* Make each helper data uniformkpdecker2014-11-261-19/+26
| | | | | Provide @key and @last value for all forms of iteration. Fixes #910
* Merge pull request #870 from max-b/masterKevin Decker2014-11-081-0/+3
|\ | | | | Registering undefined partial throws exception.
| * Registering undefined partial throws exception.Maxb2014-09-191-0/+3
| |
* | Capitalization change in comments for consistencyAlex Jeng2014-09-231-1/+1
|/
* v2.0.0v2.0.0kpdecker2014-09-011-1/+1
|
* Cleanup var names slightlykpdecker2014-08-271-6/+6
|
* v2.0.0-beta.1v2.0.0-beta.1kpdecker2014-08-261-1/+1
|
* Prune unused codekpdecker2014-08-251-1/+1
|
* Fix compiler version tagkpdecker2014-08-251-1/+1
|
* Rev runtime versionkpdecker2014-08-251-2/+3
|
* Additional test coveragekpdecker2014-08-151-1/+1
|
* Remove nested function eval in blockHelperMissingkpdecker2014-08-141-2/+0
| | | This only worked when a function returned a function, which was then evaluated. This seems like unexpected behavior so this was dropped.
* Drop unused registerHelper inverse parameterkpdecker2014-08-141-3/+2
|
* Increase test coverage a touchkpdecker2014-08-141-1/+2
|
* Support inverse sections on the with helperDan Manges2014-07-161-0/+2
|
* Provide clear throw on {{#each}}kpdecker2014-05-271-3/+1
| | | Fixes #773
* v2.0.0-alpha.4v2.0.0-alpha.4kpdecker2014-05-191-1/+1
|
* v2.0.0-alpha.3v2.0.0-alpha.3kpdecker2014-05-191-1/+1
|
* v2.0.0-alpha.2v2.0.0-alpha.2kpdecker2014-03-061-1/+1
|
* vv2.0.0-alpha.1v2.0.0-alpha.1kpdecker2014-02-101-1/+1
|
* Update compiler revision infokpdecker2014-02-101-2/+3
|
* Add support for depthed resolution of data fieldskpdecker2014-02-091-1/+3
|
* Implement lookup helperkpdecker2014-02-091-0/+4
|
* Add partial and helper unregister APIskpdecker2014-01-181-0/+6
| | | Fixes #669
* Fix handler execution in nondata/nonid modekpdecker2014-01-171-4/+7
|
* Add contextPath tracking in builtin helperskpdecker2014-01-171-2/+32
|
* Allow implicit context iteration with eachkpdecker2014-01-171-0/+6
| | | Fixes #671
* Improve usefulness of extend util, properly use namespace property, update ↵Blake Embrey2014-01-161-5/+3
| | | | setup options to use a hash helper.
* Include name option for all helper callskpdecker2014-01-061-3/+5
| | | | | | | | 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
* v1.3.0v1.3.0kpdecker2014-01-011-1/+1
|
* Include line info in compiler thrown exceptionskpdecker2014-01-011-1/+1
| | | Fixes #636
* v1.2.1v1.2.1kpdecker2013-12-261-1/+1
|
* v1.2.0v1.2.0kpdecker2013-12-231-1/+1
|
* Use strict comparison for firstkpdecker2013-12-221-1/+1
|
* Merge branch 'patch-1' of github.com:cgp/handlebars.js into cgp-patch-1kpdecker2013-12-221-1/+5
|\
| * Update base.jsChris Pall2013-11-221-1/+5
| | | | | | 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.
* | Run jshint on outputkpdecker2013-12-011-1/+0
| | | | | | Allows us to execute jshint in non-forced mode.
* | Add missing semicolonkpdecker2013-12-011-1/+1
|/
* v1.1.2v1.1.2kpdecker2013-11-051-1/+1
|
* Unify isArray/isFunction/toString implementationskpdecker2013-11-051-17/+3
| | | | | Restores Array.isArray polyfill for all use cases. Fixes #645
* v1.1.1v1.1.1kpdecker2013-11-041-1/+1
|
* v1.1.0kpdecker2013-11-031-1/+1
|
* Add includeZero flag to if conditionalkpdecker2013-10-141-2/+5
| | | | | Allows for users who desire non-falsy handling of numbers to utilize if while maintaining the legacy if behavior. Fixes #608
* Fix improper stashkpdecker2013-10-141-1/+1
|
* Fix case typokpdecker2013-10-141-1/+1
|
* Access utils methods via moduleskpdecker2013-10-141-7/+6
| | | | | | 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.
* Remove uncessary ? operator when returning boolean values for @first and @lastDennis Kuczynski2013-10-121-2/+2
|
* Add @first and @last data variables to #each helper resolving Issue #483denniskuczynski2013-10-121-1/+5
|
* Update logger interface to expose prior APIkpdecker2013-10-121-5/+8
|
* Remove global Handlebars referenceskpdecker2013-10-091-4/+5
|
* Break exception class out into a standalone modulekpdecker2013-10-011-4/+5
|
* Update logger for es6 moduleskpdecker2013-09-301-4/+4
|
* Merge branch 'master' into es6-moduleskpdecker2013-09-021-16/+25
|\ | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Unify isFunction/isArray handlingkpdecker2013-08-241-14/+22
| |
| * Use extend rather than prototype for createFramekpdecker2013-08-241-4/+3
| | | | | | | | | | | | 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.
* | Merge commit '87b5d4ee61605b026506e92c9e8873d867c5f150' into es6-moduleskpdecker2013-09-021-1/+1
|\ \ | |/ | | | | | | | | | | | | Conflicts: dist/handlebars.js dist/handlebars.runtime.js lib/handlebars/base.js lib/handlebars/utils.js
| * Fix #597. If-helper doesn't anymore consider 0 as falsy value.Tuomas Palenius2013-08-151-1/+1
| |
* | Make the Handlebars environment into an objectYehuda Katz2013-07-261-33/+32
| | | | | | | | | | | | | | | | 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.
* | Further progress towards modularization.Yehuda Katz2013-07-241-12/+14
| | | | | | | | | | 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.
* | Building an AMD fileYehuda Katz2013-07-161-1/+1
| |
* | Initial work on ES6 modulesYehuda Katz2013-07-011-122/+124
|/
* Update to 1.0.0 finalkpdecker2013-05-311-1/+1
|
* Merge global and passed helpers and partialskpdecker2013-05-311-2/+3
|
* Allow function arguments to with and eachkpdecker2013-05-291-0/+6
| | | | Via @mcdan Fixes #239
* improve error message on missing helperkpdecker2013-05-291-1/+1
| | | | Via @stefanpenner Fixes #523
* Use better variable namekpdecker2013-05-211-6/+6
|
* Rev to rc4kpdecker2013-05-131-1/+1
|
* Allow multiple partial and helper registrationkpdecker2013-04-071-5/+16
| | | | | | Fixes #369
* Merge branch 'program-metadata'kpdecker2013-04-071-2/+3
|\
| * Add program metadatakpdecker2013-02-171-2/+3
| | | | | | | | | | | | Include program id and depth on the generated wrapper objects. This allows helpers who are passed these objects to differentiate between helpers for cases where they may want to cache the generated DOM structure.
* | Merge pull request #213 from thejohnfreeman/masterKevin Decker2013-03-131-1/+1
|\ \ | |/ |/| Block helper "with" should check for empty context
| * block helper "with" should check for empty contextJohn Freeman2012-03-311-1/+1
| |
* | Create new options object for unless nestingkpdecker2013-02-161-5/+1
| | | | | | Fixes #343
* | browser-prefix/suffix templateskpdecker2013-02-161-5/+1
| |
* | Restore module scope in base.jskpdecker2013-02-151-6/+7
| |
* | Merge branch 'master' of github.com:tommydudebreaux/handlebars.js into ↵kpdecker2013-02-151-7/+7
|\ \ | | | | | | | | | tommydudebreaux-master
| * | tests passingTommy Messbauer2013-02-111-1/+1
| | |
| * | mergeTommy Messbauer2013-02-111-3/+28
| |\ \