summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix case-insensitive file system compile issuekpdecker2014-12-261-1/+1
| |
| * Add parent tracking and mutation to AST visitorskpdecker2014-12-263-38/+192
|/ | | Fixes #916
* Bump code coveragekpdecker2014-12-266-9/+8
|
* Implement block parameterskpdecker2014-12-269-52/+248
| | | Fixes #907
* Expose AST helpers in public APIkpdecker2014-12-212-21/+26
|
* Update fix for #926 for 3.0 codelinekpdecker2014-12-171-1/+1
|
* Track depths on deduped childrenkpdecker2014-12-162-1/+20
| | | | | Fixes a very specific error case where deduped children won’t receive the depths object due to it being omitted by the caller when optimizing. Fixes #926
* Avoid unnecessary this. referencekpdecker2014-12-161-3/+3
|
* Fix remaining depth argkpdecker2014-12-161-1/+0
|
* Remove unused vars and add jshint checkingkpdecker2014-12-168-10/+4
|
* Remove Compiler.depths parameterkpdecker2014-12-162-19/+7
| | | | This is no longer necessary with the depths array tracking and adds compiler overhead.
* Merge pull request #918 from oneeman/submodule-instr-in-contributingKevin Decker2014-12-085-4/+6
|\ | | | | Add instructions for 'spec/mustache' to CONTRIBUTING.md, fix a few typos
| * Add instructions for 'spec/mustache' to CONTRIBUTING.md, fix a few typos ↵Or Neeman2014-12-075-4/+6
|/ | | | elsewere
* Allow blockParams on chained inverse statementskpdecker2014-11-293-4/+11
|
* Add basic docs for JavaScriptCompiler override APIkpdecker2014-11-292-9/+32
|
* Drop unused JavaScriptCompiler.namespace paramkpdecker2014-11-291-2/+0
|
* Move compileProgram out of visitor methodskpdecker2014-11-291-18/+18
|
* Track source node via accept call rather vs opcodekpdecker2014-11-291-41/+46
|
* Merge pull request #915 from wycats/ast-updateKevin Decker2014-11-2920-922/+1119
|\ | | | | Ast update
| * s/Subexpression/SubExpression/kpdecker2014-11-292-5/+5
| |
| * Rework strip flags to make clearer at in AST levelkpdecker2014-11-287-213/+268
| | | | | | Rather than keeping state in the AST, which requires some gymnastics, we create a separate visitor flow which does the top down iteration necessary to calculate all of the state needed for proper whitespace control evaluation.
| * Move Jison parsing out of AST into helperskpdecker2014-11-285-102/+68
| |
| * First crack at compiler API docskpdecker2014-11-281-0/+224
| |
| * Add original to BooleanLiteralkpdecker2014-11-281-1/+2
| |
| * Rename AST objects to match type nameskpdecker2014-11-286-75/+69
| |
| * Treat partial exec in a manner closer to helperskpdecker2014-11-274-48/+50
| | | | | | This helps unify the code handling and will also be needed to support string/id tracking on partials.
| * Update subexpression and hash AST constructskpdecker2014-11-279-112/+111
| |
| * Simplify Path and Sexpr calculated flagskpdecker2014-11-273-26/+39
| |
| * Replace DataNode and IdNode with PathNodekpdecker2014-11-2611-124/+103
| | | | | | This is a breaking change for string mode users as there is no longer a distinct type for data parameters. Instead data consumers should look for the @ prefix value.
| * Update literal ast nodes for new speckpdecker2014-11-267-44/+42
| |
| * Update statement node ASTskpdecker2014-11-2610-199/+179
| |
| * Update MustacheNode for new AST structurekpdecker2014-11-266-37/+21
| |
| * Update ProgramNode to better match SpiderMonkeykpdecker2014-11-268-118/+119
| |
| * Update AST location info to match SpiderMonkeykpdecker2014-11-269-94/+95
|/ | | Part of #889
* Make each helper data uniformkpdecker2014-11-262-19/+36
| | | | | Provide @key and @last value for all forms of iteration. Fixes #910
* Update to latest es6-module-packagerkpdecker2014-11-261-1/+1
|
* Export the default object for handlebars/runtimekpdecker2014-11-261-1/+1
| | | Maintains consistency with the prior export pattern, while avoids the knarly default loading issues.
* Provide Handlebars.noConflict implementationkpdecker2014-11-265-2/+40
| | | | | Allows for users who are loading via a global pattern to avoid conflicting with other instances of the library. Fixes #887
* Lookup partials when undefinedkpdecker2014-11-251-0/+3
|
* Optimize variable declarationkpdecker2014-11-251-2/+1
|
* Merge pull request #906 from mmun/block-paramsKevin Decker2014-11-129-12/+51
|\ | | | | Add parser support for block params
| * Add parser support for block paramsMartin Muñoz2014-11-119-12/+51
|/
* Merge pull request #856 from MajorBreakfast/patch-1Kevin Decker2014-11-111-0/+5
|\ | | | | jspm compatibility
| * jspm compatibilityMajorBreakfast2014-11-101-0/+5
| | | | | | | | This will enable compatibilty with jspm as soon as https://github.com/wycats/handlebars.js/issues/855 has been addressed.
* | Propagate options for client compiled partialskpdecker2014-11-083-1/+12
| | | | | | Fixes #901
* | Merge branch 'mmun-remove-block-mustache'kpdecker2014-11-087-44/+53
|\ \
| * \ Merge branch 'remove-block-mustache' of github.com:mmun/handlebars.js into ↵kpdecker2014-11-087-44/+53
| |\ \ |/ / / | | | | | | | | | | | | | | | | | | mmun-remove-block-mustache Conflicts: lib/handlebars/compiler/helpers.js spec/parser.js
| * | Remove RawBlockNode in favor of prepareRawBlock helperMartin Muñoz2014-11-052-9/+3
| | |
| * | Simplify BlockNode by removing intermediate MustacheNodeMartin Muñoz2014-11-027-37/+52
| | |
* | | Only provide aliases for multiple use callskpdecker2014-11-081-26/+39
| | | | | | | | | Fixes #903
* | | Fix missing coveragekpdecker2014-11-081-0/+7
| | |
* | | Remove unnecessary test stubkpdecker2014-11-081-6/+0
| | |
* | | Merge pull request #902 from wycats/source-mapKevin Decker2014-11-0812-168/+459
|\ \ \ | | | | | | | | Generate Source Maps
| * | | Provide default mapping for boilerplate codekpdecker2014-11-081-1/+5
| | | |
| * | | Add source map output support to the CLIkpdecker2014-11-083-21/+76
| | | |
| * | | Generate source mapskpdecker2014-11-088-103/+330
| | | | | | | | | | | | | | | | | | | | | | | | Allow the precompiler to generate source maps when the srcFile parameter is passed. This refactors large chunks of the code generation pipeline, allowing metadata to be associated with code chunks as well as breaking out much of the code generation logic into a separate helper.
| * | | Include location information in all opcodeskpdecker2014-11-082-45/+50
|/ / /
* | | Merge pull request #892 from wycats/else-ifKevin Decker2014-11-085-11/+72
|\ \ \ | | | | | | | | Implement parser for else chaining of helpers
| * | | Implement parser for else chaining of helperskpdecker2014-10-275-11/+72
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows users to chain multiple helpers together using their inverse callbacks. I.e. ``` {{#if foo}} {{else if bar}} {{else}} {{/if}} ``` The control flow here effectively causes the helpers to be nested. The above is actually syntactic sugar for this: ``` {{#if foo}} {{else}} {{#if bar}} {{else}} {{/if}} {{/if}} ``` Any helper may be used in this manner, the only requirement is they support normal calls and inverse calls. Introduces a breaking change in that `{{else foo}}` may no longer be used as a root level operator. Instead `{{^foo}}` must be used. Fixes #72.
* | | Merge pull request #890 from wycats/to-html-safeKevin Decker2014-11-083-3/+9
|\ \ \ | | | | | | | | Use toHTML vs. instanceof checks for SafeString
| * | | Use toHTML vs. instanceof checks for SafeStringkpdecker2014-11-083-3/+9
|/ / / | | | | | | | | | | | | | | | Allows for us to play nicely in environments such as Node that could have multiple versions of the library loaded. Also allows for implementors to provide their own behavior, provided they know what they are doing. Fixes #886
* | | Merge pull request #863 from tomByrer/patch-1Kevin Decker2014-11-081-0/+2
|\ \ \ | | | | | | | | + jsDelivr CDN info
| * | | + jsDelivr CDN infotomByrer2014-09-061-0/+2
| |/ / | | | | | | | | | | | | Thanks to libgrabber, every time a [new release is posted](https://github.com/components/handlebars.js/releases), jsDelivr will find it & automatically upload it. If you change your file structure, please updated the [include section](https://github.com/jsdelivr/jsdelivr/blob/master/files/handlebarsjs/update.json) or ask us to do it. I was going to link CDNJS, but they [haven't uploaded to v2.0.0](http://cdnjs.com/libraries/handlebars.js). Nothing against those cats; we [use their network](http://www.jsdelivr.com/network.php).
* | | Merge pull request #870 from max-b/masterKevin Decker2014-11-082-6/+16
|\ \ \ | | | | | | | | Registering undefined partial throws exception.
| * | | Fixing indentation in spec/partials.jsMaxb2014-09-191-6/+6
| | | |
| * | | Registering undefined partial throws exception.Maxb2014-09-192-0/+10
| | | |
* | | | Simplify program generation logickpdecker2014-11-081-10/+2
| | | |
* | | | Bump test coveragekpdecker2014-11-084-4/+35
| | | |
* | | | Ignore unused code pathskpdecker2014-11-081-0/+2
| | | | | | | | | | | | | | | | We don’t want to remove these as the generic code may need it in the future, but these code paths are not triggered through the existing language constructs.
* | | | Merge setupParams and setupOptionskpdecker2014-11-061-9/+2
| | | |
* | | | Simplify flushInline implementationkpdecker2014-11-051-19/+10
| | | |
* | | | Use terinary operator for inline appendskpdecker2014-11-051-7/+12
| | | | | | | | | | | | | | | | Allows for append operations to avoid breaking inline chain.
* | | | Provide stubbed visitor implementationkpdecker2014-11-052-2/+106
| |_|/ |/| | | | | Part of #889
* | | Add preventIndent option for partialskpdecker2014-11-023-2/+15
| | | | | | | | | | | | | | | This disables the standalone partial indent behavior required by the Mustache spec and allows for users to utilize partials in the same manner as under 1.x. Fixes #858
* | | Add test for whitespace control w/ partial indentkpdecker2014-11-021-0/+3
| | | | | | | | | Verifies the behaviors discussed in #858
* | | Allow whitespace control on commentskpdecker2014-11-027-12/+29
| | | | | | | | | | | | | | | This changes the call signature for the CommentNode constructor, which is a potentially breaking change for AST users. Fixes #866
* | | Fix help message for CLIkpdecker2014-11-021-1/+13
| | | | | | | | | | | | Fixes #895
* | | Merge pull request #874 from ogwiz2/patch-1Kevin Decker2014-10-271-1/+1
|\ \ \ | |/ / |/| | Capitalization change in comments for consistency
| * | Capitalization change in comments for consistencyAlex Jeng2014-09-231-1/+1
|/ /
* | Merge pull request #869 from jonsadka/patch-1Kevin Decker2014-09-191-1/+1
|\ \ | |/ |/| Update FAQ.md
| * Update FAQ.mdJon Sadka2014-09-181-1/+1
|/ | | Fixed misspelling of sufficent to sufficient on Line 60
* Update jsfiddle linkkpdecker2014-09-021-1/+1
|
* Fix non-prerelease handling for gemspeckpdecker2014-09-011-1/+1
|
* v2.0.0v2.0.0kpdecker2014-09-014-4/+4
|
* Update release noteskpdecker2014-09-011-1/+8
|
* Update jsfiddle to 2.0.0-beta.1kpdecker2014-08-271-1/+1
|
* Add contrib note regarding handlebarsjs.com docskpdecker2014-08-271-0/+2
|
* Cleanup var names slightlykpdecker2014-08-271-6/+6
|
* Drop cdnjs release stepkpdecker2014-08-261-1/+0
|
* Play nice with gemspec version numberskpdecker2014-08-261-1/+1
|
* v2.0.0-beta.1v2.0.0-beta.1kpdecker2014-08-264-4/+4
|
* Update release noteskpdecker2014-08-261-1/+44
|
* Update FAQ.mdKevin Decker2014-08-251-0/+8
|
* Render false literal as “false”kpdecker2014-08-254-3/+13
| | | Fixes #827
* Update FAQ with comment on UMD vs. AMD buildkpdecker2014-08-251-1/+8
| | | Fixes #796
* Prune unused codekpdecker2014-08-255-8/+4
|
* Fix test pathkpdecker2014-08-251-1/+1
|
* Convert build to expose UMD from the default fileskpdecker2014-08-254-1/+299
|
* Move uglify include past conditionalkpdecker2014-08-251-2/+2
|
* Expose default compatibility wrapper for umd buildkpdecker2014-08-252-0/+4
|