Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Run the precompiler module through es6 toolchain | kpdecker | 2015-04-20 | 4 | -21/+19 | |
| | ||||||
* | Enable additional es6 features in eslint | kpdecker | 2015-04-20 | 3 | -3/+19 | |
| | ||||||
* | Merge pull request #998 from wycats/babel | Kevin Decker | 2015-04-16 | 51 | -1542/+1789 | |
|\ | | | | | Add full support for es6 | |||||
| * | Fix UMD build target generation | kpdecker | 2015-04-16 | 1 | -1/+1 | |
| | | ||||||
| * | Add full support for es6 | kpdecker | 2015-04-16 | 51 | -1542/+1789 | |
|/ | | | | | | | | 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 | |||||
* | Fix IE test freakout | kpdecker | 2015-04-14 | 1 | -2/+2 | |
| | ||||||
* | Use captureStackTrace for error handler | kpdecker | 2015-04-14 | 1 | -0/+4 | |
| | | | Provides more stable error stack reporting when running under v8 environments. | |||||
* | Allow this references in literal statements | kpdecker | 2015-04-14 | 4 | -11/+33 | |
| | | | Fixes #967 | |||||
* | Expose Visitor in full browser build | kpdecker | 2015-04-13 | 2 | -2/+3 | |
| | | | Fixes #994 | |||||
* | Allow undefined and null in helper names | kpdecker | 2015-04-13 | 4 | -3/+21 | |
| | ||||||
* | Ignore branches tested without coverage monitoring | kpdecker | 2015-04-07 | 1 | -1/+2 | |
| | ||||||
* | Remove vestigial code | kpdecker | 2015-04-07 | 1 | -5/+0 | |
| | ||||||
* | Add undefined and null literal support | kpdecker | 2015-04-07 | 12 | -2/+65 | |
| | | | | | This adds the UndefinedLiteral and NullLiteral to AST. Fixes #990 | |||||
* | Avoid source-map import under AMD | kpdecker | 2015-04-07 | 2 | -4/+16 | |
| | | | Fixes #989 | |||||
* | Add require.js error reporting in tests | kpdecker | 2015-04-07 | 2 | -4/+35 | |
| | | | Adds test coverage for #989 | |||||
* | v3.0.1v3.0.1 | kpdecker | 2015-03-24 | 4 | -4/+4 | |
| | ||||||
* | Update release notes | kpdecker | 2015-03-24 | 1 | -1/+10 | |
| | ||||||
* | Merge pull request #984 from johneke/master | Kevin Decker | 2015-03-24 | 1 | -0/+29 | |
|\ | | | | | Adding documentation for passing arguments into partials | |||||
| * | Update README.markdown | johneke | 2015-03-18 | 1 | -6/+10 | |
| | | ||||||
| * | Adding documentation for parameters in partials | johneke | 2015-03-18 | 1 | -0/+25 | |
|/ | ||||||
* | Optimize hot path in escapeExpression | kpdecker | 2015-03-16 | 1 | -13/+15 | |
| | | | | | Avoid deoptimizations in v8 due to the duct type check on string instances. Partial fix for #973 | |||||
* | Fix --version flag | kpdecker | 2015-02-28 | 1 | -1/+1 | |
| | | | | Fixes #966 | |||||
* | Merge pull request #964 from grassick/patch-1 | Kevin Decker | 2015-02-28 | 1 | -1/+1 | |
|\ | | | | | default is a reserved word | |||||
| * | default is a reserved word | grassick | 2015-02-18 | 1 | -1/+1 | |
|/ | | | Quoting it to fix in older browsers, especially Android 2.3.x. | |||||
* | Merge pull request #962 from pismute/master | Kevin Decker | 2015-02-16 | 1 | -0/+1 | |
|\ | | | | | Add dashbars' link on README. | |||||
| * | Add dashbars' link on README. | Changwoo Park | 2015-02-16 | 1 | -0/+1 | |
|/ | ||||||
* | Fix typo | kpdecker | 2015-02-10 | 1 | -1/+1 | |
| | ||||||
* | v3.0.0v3.0.0 | kpdecker | 2015-02-10 | 4 | -6/+10 | |
| | ||||||
* | Update release notes | kpdecker | 2015-02-10 | 1 | -1/+51 | |
| | ||||||
* | Merge branch 'marcioj-boolean-literals' | kpdecker | 2015-02-09 | 5 | -8/+50 | |
|\ | ||||||
| * | Update AST docs for literal helper names | kpdecker | 2015-02-09 | 1 | -1/+1 | |
| | | ||||||
| * | Handle all potential literal values | kpdecker | 2015-02-09 | 3 | -24/+35 | |
| | | | | | | Adds support for literal helper names in a few missing cases such as block expressions and subexpressions. | |||||
| * | Transform literals to path expressions in mustache nodes | Marcio Junior | 2015-02-08 | 2 | -12/+18 | |
| | | ||||||
| * | Test compilation of literal values in mustaches | Marcio Junior | 2015-02-08 | 2 | -1/+21 | |
| | | ||||||
| * | Boolean literals can be passed to mustaches | Marcio Junior | 2015-02-08 | 2 | -0/+5 | |
|/ | ||||||
* | Fix console.log cleanup | kpdecker | 2015-02-07 | 1 | -1/+4 | |
| | ||||||
* | Fix global leak in test | kpdecker | 2015-02-07 | 1 | -0/+1 | |
| | ||||||
* | Fail over to console.log if lacking console method | kpdecker | 2015-02-07 | 2 | -5/+7 | |
| | | | This improves logger resiliency under older browsers. | |||||
* | Change default log level to info | kpdecker | 2015-02-07 | 2 | -5/+7 | |
| | | | | | | 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 | |||||
* | Merge pull request #943 from ogennadi/patch-2 | Kevin Decker | 2015-01-21 | 1 | -1/+1 | |
|\ | | | | | Properly formatted dot | |||||
| * | Properly formatted dot | Oge Nnadi | 2015-01-20 | 1 | -1/+1 | |
| | | ||||||
* | | Merge pull request #944 from ogennadi/patch-3 | Kevin Decker | 2015-01-21 | 1 | -1/+1 | |
|\ \ | |/ |/| | Clarified a long sentence | |||||
| * | Clarified a long sentence | Oge Nnadi | 2015-01-20 | 1 | -1/+1 | |
|/ | ||||||
* | Merge pull request #941 from wycats/dynamic-partial | Kevin Decker | 2015-01-18 | 13 | -88/+178 | |
|\ | | | | | Add support for dynamic partial names | |||||
| * | Avoid direct references to sexpr in statements | kpdecker | 2015-01-18 | 10 | -91/+100 | |
| | | | | | | | | | | This allows us to avoid creating unnecessary AST nodes and avoids things like isHelper. Side effect of these changes is that @data functions can now have data parameters passed to them. | |||||
| * | Update for proposed SubExpression dependency break | kpdecker | 2015-01-18 | 1 | -19/+17 | |
| | | | | | | Avoids parsing against SubExpressions and instead inlines the content that a subexpression otherwise would have. This can still be based via duck typing so should not add much overhead to the compiler. | |||||
| * | Update PartialExpression AST docs | kpdecker | 2015-01-18 | 1 | -2/+2 | |
| | | ||||||
| * | Add support for dynamic partial names | kpdecker | 2015-01-18 | 9 | -9/+92 | |
|/ | | | | | | | | | Uses the subexpression syntax to allow for dynamic partial lookups. Ex: ``` {{> (helper) }} ``` Fixes #933 | |||||
* | Add tests for partial comment whitespace control | kpdecker | 2015-01-17 | 1 | -3/+7 | |
| | ||||||
* | Include error info when throwing type error | kpdecker | 2015-01-17 | 1 | -1/+1 | |
| | ||||||
* | Merge pull request #940 from mattflaschen/addMissingReservedWords | Kevin Decker | 2015-01-17 | 2 | -1/+8 | |
|\ | | | | | Add missing reserved words so compiler knows to use array syntax: | |||||
| * | Add missing reserved words so compiler knows to use array syntax: | Matthew Flaschen | 2015-01-17 | 2 | -1/+8 | |
|/ | | | | | | | | | | | | | | | | * await * null * true * false IE 8 was failing to compile Handlebars-generated source code because it had helpers.null. I came up with this list by diffing https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords against the ones Handlebars already had. I added two corresponding tests for nameLookup. | |||||
* | Ignore coverage dir in npm package | kpdecker | 2015-01-17 | 1 | -0/+1 | |
| | | | | Fixes #937 | |||||
* | Merge pull request #938 from diwo/patch-1 | Kevin Decker | 2015-01-15 | 1 | -1/+1 | |
|\ | | | | | Fix example using #with helper | |||||
| * | Fix example using #with helper | Dickson Wong | 2015-01-14 | 1 | -1/+1 | |
|/ | | | Example using #with helper should close tag using {{/with}} | |||||
* | Merge pull request #932 from wycats/strict | Kevin Decker | 2014-12-31 | 3 | -7/+172 | |
|\ | | | | | Implement strict and assumeObject modes | |||||
| * | Implement strict and assumeObject modes | kpdecker | 2014-12-27 | 3 | -7/+172 | |
| | | | | | | | | | | | | | | | | Causes templates to throw when lookup fields are not defined within the context. Strict mode will throw when any field is omitted. assumeObjects mode maintains the existing behavior of outputting an empty response when fields are not defined but allows for performance/size optimizations by not doing safety checks for intermediate objects in the lookup chain. Strict mode effectively disables the helperMissing and inverse handling for blockHelperMissing as templates will throw rather than call those features for missing data fields. Fixes #651 Fixes #805 | |||||
* | | Merge pull request #930 from wycats/visitor-update | Kevin Decker | 2014-12-29 | 3 | -38/+192 | |
|\ \ | |/ |/| | Add parent tracking and mutation to AST visitors | |||||
| * | Merge branch 'master' into visitor-update | kpdecker | 2014-12-27 | 5 | -20/+34 | |
| |\ | |/ |/| | ||||||
* | | Fix sourcemap test | kpdecker | 2014-12-27 | 1 | -2/+2 | |
| | | ||||||
* | | Fix block param evaluation under older IE | kpdecker | 2014-12-27 | 2 | -2/+12 | |
| | | ||||||
* | | Safely handle source map in browser tests | kpdecker | 2014-12-27 | 1 | -5/+9 | |
| | | ||||||
* | | Strip unnecessary whitespace in template output | kpdecker | 2014-12-27 | 1 | -1/+1 | |
| | | ||||||
* | | Update dependencies | kpdecker | 2014-12-27 | 1 | -13/+13 | |
| | | ||||||
* | | Fix duplicate return statement on simple templates | kpdecker | 2014-12-27 | 1 | -1/+1 | |
| | | ||||||
| * | 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 |