Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Fix case-insensitive file system compile issue | kpdecker | 2014-12-26 | 1 | -1/+1 | |
| | | ||||||
| * | Add parent tracking and mutation to AST visitors | kpdecker | 2014-12-26 | 3 | -38/+192 | |
|/ | | | Fixes #916 | |||||
* | Bump code coverage | kpdecker | 2014-12-26 | 6 | -9/+8 | |
| | ||||||
* | Implement block parameters | kpdecker | 2014-12-26 | 9 | -52/+248 | |
| | | | Fixes #907 | |||||
* | Expose AST helpers in public API | kpdecker | 2014-12-21 | 2 | -21/+26 | |
| | ||||||
* | Update fix for #926 for 3.0 codeline | kpdecker | 2014-12-17 | 1 | -1/+1 | |
| | ||||||
* | Track depths on deduped children | kpdecker | 2014-12-16 | 2 | -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. reference | kpdecker | 2014-12-16 | 1 | -3/+3 | |
| | ||||||
* | Fix remaining depth arg | kpdecker | 2014-12-16 | 1 | -1/+0 | |
| | ||||||
* | Remove unused vars and add jshint checking | kpdecker | 2014-12-16 | 8 | -10/+4 | |
| | ||||||
* | Remove Compiler.depths parameter | kpdecker | 2014-12-16 | 2 | -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-contributing | Kevin Decker | 2014-12-08 | 5 | -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 Neeman | 2014-12-07 | 5 | -4/+6 | |
|/ | | | | elsewere | |||||
* | Allow blockParams on chained inverse statements | kpdecker | 2014-11-29 | 3 | -4/+11 | |
| | ||||||
* | Add basic docs for JavaScriptCompiler override API | kpdecker | 2014-11-29 | 2 | -9/+32 | |
| | ||||||
* | Drop unused JavaScriptCompiler.namespace param | kpdecker | 2014-11-29 | 1 | -2/+0 | |
| | ||||||
* | Move compileProgram out of visitor methods | kpdecker | 2014-11-29 | 1 | -18/+18 | |
| | ||||||
* | Track source node via accept call rather vs opcode | kpdecker | 2014-11-29 | 1 | -41/+46 | |
| | ||||||
* | Merge pull request #915 from wycats/ast-update | Kevin Decker | 2014-11-29 | 20 | -922/+1119 | |
|\ | | | | | Ast update | |||||
| * | s/Subexpression/SubExpression/ | kpdecker | 2014-11-29 | 2 | -5/+5 | |
| | | ||||||
| * | Rework strip flags to make clearer at in AST level | kpdecker | 2014-11-28 | 7 | -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 helpers | kpdecker | 2014-11-28 | 5 | -102/+68 | |
| | | ||||||
| * | First crack at compiler API docs | kpdecker | 2014-11-28 | 1 | -0/+224 | |
| | | ||||||
| * | Add original to BooleanLiteral | kpdecker | 2014-11-28 | 1 | -1/+2 | |
| | | ||||||
| * | Rename AST objects to match type names | kpdecker | 2014-11-28 | 6 | -75/+69 | |
| | | ||||||
| * | Treat partial exec in a manner closer to helpers | kpdecker | 2014-11-27 | 4 | -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 constructs | kpdecker | 2014-11-27 | 9 | -112/+111 | |
| | | ||||||
| * | Simplify Path and Sexpr calculated flags | kpdecker | 2014-11-27 | 3 | -26/+39 | |
| | | ||||||
| * | Replace DataNode and IdNode with PathNode | kpdecker | 2014-11-26 | 11 | -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 spec | kpdecker | 2014-11-26 | 7 | -44/+42 | |
| | | ||||||
| * | Update statement node ASTs | kpdecker | 2014-11-26 | 10 | -199/+179 | |
| | | ||||||
| * | Update MustacheNode for new AST structure | kpdecker | 2014-11-26 | 6 | -37/+21 | |
| | | ||||||
| * | Update ProgramNode to better match SpiderMonkey | kpdecker | 2014-11-26 | 8 | -118/+119 | |
| | | ||||||
| * | Update AST location info to match SpiderMonkey | kpdecker | 2014-11-26 | 9 | -94/+95 | |
|/ | | | Part of #889 | |||||
* | Make each helper data uniform | kpdecker | 2014-11-26 | 2 | -19/+36 | |
| | | | | | Provide @key and @last value for all forms of iteration. Fixes #910 | |||||
* | Update to latest es6-module-packager | kpdecker | 2014-11-26 | 1 | -1/+1 | |
| | ||||||
* | Export the default object for handlebars/runtime | kpdecker | 2014-11-26 | 1 | -1/+1 | |
| | | | Maintains consistency with the prior export pattern, while avoids the knarly default loading issues. | |||||
* | Provide Handlebars.noConflict implementation | kpdecker | 2014-11-26 | 5 | -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 undefined | kpdecker | 2014-11-25 | 1 | -0/+3 | |
| | ||||||
* | Optimize variable declaration | kpdecker | 2014-11-25 | 1 | -2/+1 | |
| | ||||||
* | Merge pull request #906 from mmun/block-params | Kevin Decker | 2014-11-12 | 9 | -12/+51 | |
|\ | | | | | Add parser support for block params | |||||
| * | Add parser support for block params | Martin Muñoz | 2014-11-11 | 9 | -12/+51 | |
|/ | ||||||
* | Merge pull request #856 from MajorBreakfast/patch-1 | Kevin Decker | 2014-11-11 | 1 | -0/+5 | |
|\ | | | | | jspm compatibility | |||||
| * | jspm compatibility | MajorBreakfast | 2014-11-10 | 1 | -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 partials | kpdecker | 2014-11-08 | 3 | -1/+12 | |
| | | | | | | Fixes #901 | |||||
* | | Merge branch 'mmun-remove-block-mustache' | kpdecker | 2014-11-08 | 7 | -44/+53 | |
|\ \ | ||||||
| * \ | Merge branch 'remove-block-mustache' of github.com:mmun/handlebars.js into ↵ | kpdecker | 2014-11-08 | 7 | -44/+53 | |
| |\ \ |/ / / | | | | | | | | | | | | | | | | | | | mmun-remove-block-mustache Conflicts: lib/handlebars/compiler/helpers.js spec/parser.js | |||||
| * | | Remove RawBlockNode in favor of prepareRawBlock helper | Martin Muñoz | 2014-11-05 | 2 | -9/+3 | |
| | | | ||||||
| * | | Simplify BlockNode by removing intermediate MustacheNode | Martin Muñoz | 2014-11-02 | 7 | -37/+52 | |
| | | | ||||||
* | | | Only provide aliases for multiple use calls | kpdecker | 2014-11-08 | 1 | -26/+39 | |
| | | | | | | | | | Fixes #903 | |||||
* | | | Fix missing coverage | kpdecker | 2014-11-08 | 1 | -0/+7 | |
| | | | ||||||
* | | | Remove unnecessary test stub | kpdecker | 2014-11-08 | 1 | -6/+0 | |
| | | | ||||||
* | | | Merge pull request #902 from wycats/source-map | Kevin Decker | 2014-11-08 | 12 | -168/+459 | |
|\ \ \ | | | | | | | | | Generate Source Maps | |||||
| * | | | Provide default mapping for boilerplate code | kpdecker | 2014-11-08 | 1 | -1/+5 | |
| | | | | ||||||
| * | | | Add source map output support to the CLI | kpdecker | 2014-11-08 | 3 | -21/+76 | |
| | | | | ||||||
| * | | | Generate source maps | kpdecker | 2014-11-08 | 8 | -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 opcodes | kpdecker | 2014-11-08 | 2 | -45/+50 | |
|/ / / | ||||||
* | | | Merge pull request #892 from wycats/else-if | Kevin Decker | 2014-11-08 | 5 | -11/+72 | |
|\ \ \ | | | | | | | | | Implement parser for else chaining of helpers | |||||
| * | | | Implement parser for else chaining of helpers | kpdecker | 2014-10-27 | 5 | -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-safe | Kevin Decker | 2014-11-08 | 3 | -3/+9 | |
|\ \ \ | | | | | | | | | Use toHTML vs. instanceof checks for SafeString | |||||
| * | | | Use toHTML vs. instanceof checks for SafeString | kpdecker | 2014-11-08 | 3 | -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-1 | Kevin Decker | 2014-11-08 | 1 | -0/+2 | |
|\ \ \ | | | | | | | | | + jsDelivr CDN info | |||||
| * | | | + jsDelivr CDN info | tomByrer | 2014-09-06 | 1 | -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/master | Kevin Decker | 2014-11-08 | 2 | -6/+16 | |
|\ \ \ | | | | | | | | | Registering undefined partial throws exception. | |||||
| * | | | Fixing indentation in spec/partials.js | Maxb | 2014-09-19 | 1 | -6/+6 | |
| | | | | ||||||
| * | | | Registering undefined partial throws exception. | Maxb | 2014-09-19 | 2 | -0/+10 | |
| | | | | ||||||
* | | | | Simplify program generation logic | kpdecker | 2014-11-08 | 1 | -10/+2 | |
| | | | | ||||||
* | | | | Bump test coverage | kpdecker | 2014-11-08 | 4 | -4/+35 | |
| | | | | ||||||
* | | | | Ignore unused code paths | kpdecker | 2014-11-08 | 1 | -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 setupOptions | kpdecker | 2014-11-06 | 1 | -9/+2 | |
| | | | | ||||||
* | | | | Simplify flushInline implementation | kpdecker | 2014-11-05 | 1 | -19/+10 | |
| | | | | ||||||
* | | | | Use terinary operator for inline appends | kpdecker | 2014-11-05 | 1 | -7/+12 | |
| | | | | | | | | | | | | | | | | Allows for append operations to avoid breaking inline chain. | |||||
* | | | | Provide stubbed visitor implementation | kpdecker | 2014-11-05 | 2 | -2/+106 | |
| |_|/ |/| | | | | | Part of #889 | |||||
* | | | Add preventIndent option for partials | kpdecker | 2014-11-02 | 3 | -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 indent | kpdecker | 2014-11-02 | 1 | -0/+3 | |
| | | | | | | | | | Verifies the behaviors discussed in #858 | |||||
* | | | Allow whitespace control on comments | kpdecker | 2014-11-02 | 7 | -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 CLI | kpdecker | 2014-11-02 | 1 | -1/+13 | |
| | | | | | | | | | | | | Fixes #895 | |||||
* | | | Merge pull request #874 from ogwiz2/patch-1 | Kevin Decker | 2014-10-27 | 1 | -1/+1 | |
|\ \ \ | |/ / |/| | | Capitalization change in comments for consistency | |||||
| * | | Capitalization change in comments for consistency | Alex Jeng | 2014-09-23 | 1 | -1/+1 | |
|/ / | ||||||
* | | Merge pull request #869 from jonsadka/patch-1 | Kevin Decker | 2014-09-19 | 1 | -1/+1 | |
|\ \ | |/ |/| | Update FAQ.md | |||||
| * | Update FAQ.md | Jon Sadka | 2014-09-18 | 1 | -1/+1 | |
|/ | | | Fixed misspelling of sufficent to sufficient on Line 60 | |||||
* | Update jsfiddle link | kpdecker | 2014-09-02 | 1 | -1/+1 | |
| | ||||||
* | Fix non-prerelease handling for gemspec | kpdecker | 2014-09-01 | 1 | -1/+1 | |
| | ||||||
* | v2.0.0v2.0.0 | kpdecker | 2014-09-01 | 4 | -4/+4 | |
| | ||||||
* | Update release notes | kpdecker | 2014-09-01 | 1 | -1/+8 | |
| | ||||||
* | Update jsfiddle to 2.0.0-beta.1 | kpdecker | 2014-08-27 | 1 | -1/+1 | |
| | ||||||
* | Add contrib note regarding handlebarsjs.com docs | kpdecker | 2014-08-27 | 1 | -0/+2 | |
| | ||||||
* | Cleanup var names slightly | kpdecker | 2014-08-27 | 1 | -6/+6 | |
| | ||||||
* | Drop cdnjs release step | kpdecker | 2014-08-26 | 1 | -1/+0 | |
| | ||||||
* | Play nice with gemspec version numbers | kpdecker | 2014-08-26 | 1 | -1/+1 | |
| | ||||||
* | v2.0.0-beta.1v2.0.0-beta.1 | kpdecker | 2014-08-26 | 4 | -4/+4 | |
| | ||||||
* | Update release notes | kpdecker | 2014-08-26 | 1 | -1/+44 | |
| | ||||||
* | Update FAQ.md | Kevin Decker | 2014-08-25 | 1 | -0/+8 | |
| | ||||||
* | Render false literal as “false” | kpdecker | 2014-08-25 | 4 | -3/+13 | |
| | | | Fixes #827 | |||||
* | Update FAQ with comment on UMD vs. AMD build | kpdecker | 2014-08-25 | 1 | -1/+8 | |
| | | | Fixes #796 | |||||
* | Prune unused code | kpdecker | 2014-08-25 | 5 | -8/+4 | |
| | ||||||
* | Fix test path | kpdecker | 2014-08-25 | 1 | -1/+1 | |
| | ||||||
* | Convert build to expose UMD from the default files | kpdecker | 2014-08-25 | 4 | -1/+299 | |
| | ||||||
* | Move uglify include past conditional | kpdecker | 2014-08-25 | 1 | -2/+2 | |
| | ||||||
* | Expose default compatibility wrapper for umd build | kpdecker | 2014-08-25 | 2 | -0/+4 | |
| |