summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Run the precompiler module through es6 toolchainkpdecker2015-04-204-21/+19
|
* Enable additional es6 features in eslintkpdecker2015-04-203-3/+19
|
* Merge pull request #998 from wycats/babelKevin Decker2015-04-1651-1542/+1789
|\ | | | | Add full support for es6
| * Fix UMD build target generationkpdecker2015-04-161-1/+1
| |
| * Add full support for es6kpdecker2015-04-1651-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 freakoutkpdecker2015-04-141-2/+2
|
* Use captureStackTrace for error handlerkpdecker2015-04-141-0/+4
| | | Provides more stable error stack reporting when running under v8 environments.
* Allow this references in literal statementskpdecker2015-04-144-11/+33
| | | Fixes #967
* Expose Visitor in full browser buildkpdecker2015-04-132-2/+3
| | | Fixes #994
* Allow undefined and null in helper nameskpdecker2015-04-134-3/+21
|
* Ignore branches tested without coverage monitoringkpdecker2015-04-071-1/+2
|
* Remove vestigial codekpdecker2015-04-071-5/+0
|
* Add undefined and null literal supportkpdecker2015-04-0712-2/+65
| | | | | This adds the UndefinedLiteral and NullLiteral to AST. Fixes #990
* Avoid source-map import under AMDkpdecker2015-04-072-4/+16
| | | Fixes #989
* Add require.js error reporting in testskpdecker2015-04-072-4/+35
| | | Adds test coverage for #989
* v3.0.1v3.0.1kpdecker2015-03-244-4/+4
|
* Update release noteskpdecker2015-03-241-1/+10
|
* Merge pull request #984 from johneke/masterKevin Decker2015-03-241-0/+29
|\ | | | | Adding documentation for passing arguments into partials
| * Update README.markdownjohneke2015-03-181-6/+10
| |
| * Adding documentation for parameters in partialsjohneke2015-03-181-0/+25
|/
* Optimize hot path in escapeExpressionkpdecker2015-03-161-13/+15
| | | | | Avoid deoptimizations in v8 due to the duct type check on string instances. Partial fix for #973
* Fix --version flagkpdecker2015-02-281-1/+1
| | | | Fixes #966
* Merge pull request #964 from grassick/patch-1Kevin Decker2015-02-281-1/+1
|\ | | | | default is a reserved word
| * default is a reserved wordgrassick2015-02-181-1/+1
|/ | | Quoting it to fix in older browsers, especially Android 2.3.x.
* Merge pull request #962 from pismute/masterKevin Decker2015-02-161-0/+1
|\ | | | | Add dashbars' link on README.
| * Add dashbars' link on README.Changwoo Park2015-02-161-0/+1
|/
* Fix typokpdecker2015-02-101-1/+1
|
* v3.0.0v3.0.0kpdecker2015-02-104-6/+10
|
* Update release noteskpdecker2015-02-101-1/+51
|
* Merge branch 'marcioj-boolean-literals'kpdecker2015-02-095-8/+50
|\
| * Update AST docs for literal helper nameskpdecker2015-02-091-1/+1
| |
| * Handle all potential literal valueskpdecker2015-02-093-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 nodesMarcio Junior2015-02-082-12/+18
| |
| * Test compilation of literal values in mustachesMarcio Junior2015-02-082-1/+21
| |
| * Boolean literals can be passed to mustachesMarcio Junior2015-02-082-0/+5
|/
* Fix console.log cleanupkpdecker2015-02-071-1/+4
|
* Fix global leak in testkpdecker2015-02-071-0/+1
|
* Fail over to console.log if lacking console methodkpdecker2015-02-072-5/+7
| | | This improves logger resiliency under older browsers.
* Change default log level to infokpdecker2015-02-072-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-2Kevin Decker2015-01-211-1/+1
|\ | | | | Properly formatted dot
| * Properly formatted dotOge Nnadi2015-01-201-1/+1
| |
* | Merge pull request #944 from ogennadi/patch-3Kevin Decker2015-01-211-1/+1
|\ \ | |/ |/| Clarified a long sentence
| * Clarified a long sentenceOge Nnadi2015-01-201-1/+1
|/
* Merge pull request #941 from wycats/dynamic-partialKevin Decker2015-01-1813-88/+178
|\ | | | | Add support for dynamic partial names
| * Avoid direct references to sexpr in statementskpdecker2015-01-1810-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 breakkpdecker2015-01-181-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 docskpdecker2015-01-181-2/+2
| |
| * Add support for dynamic partial nameskpdecker2015-01-189-9/+92
|/ | | | | | | | | Uses the subexpression syntax to allow for dynamic partial lookups. Ex: ``` {{> (helper) }} ``` Fixes #933
* Add tests for partial comment whitespace controlkpdecker2015-01-171-3/+7
|
* Include error info when throwing type errorkpdecker2015-01-171-1/+1
|
* Merge pull request #940 from mattflaschen/addMissingReservedWordsKevin Decker2015-01-172-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 Flaschen2015-01-172-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 packagekpdecker2015-01-171-0/+1
| | | | Fixes #937
* Merge pull request #938 from diwo/patch-1Kevin Decker2015-01-151-1/+1
|\ | | | | Fix example using #with helper
| * Fix example using #with helperDickson Wong2015-01-141-1/+1
|/ | | Example using #with helper should close tag using {{/with}}
* Merge pull request #932 from wycats/strictKevin Decker2014-12-313-7/+172
|\ | | | | Implement strict and assumeObject modes
| * Implement strict and assumeObject modeskpdecker2014-12-273-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-updateKevin Decker2014-12-293-38/+192
|\ \ | |/ |/| Add parent tracking and mutation to AST visitors
| * Merge branch 'master' into visitor-updatekpdecker2014-12-275-20/+34
| |\ | |/ |/|
* | Fix sourcemap testkpdecker2014-12-271-2/+2
| |
* | Fix block param evaluation under older IEkpdecker2014-12-272-2/+12
| |
* | Safely handle source map in browser testskpdecker2014-12-271-5/+9
| |
* | Strip unnecessary whitespace in template outputkpdecker2014-12-271-1/+1
| |
* | Update dependencieskpdecker2014-12-271-13/+13
| |
* | Fix duplicate return statement on simple templateskpdecker2014-12-271-1/+1
| |
| * 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