summaryrefslogtreecommitdiffstats
path: root/spec/partials.js
Commit message (Collapse)AuthorAgeFilesLines
* Use XML-like tags in test instead of bizarre dot delimitersLon Ingram2016-08-171-4/+4
|
* Add test reproducing #1185Lon Ingram2016-08-171-0/+9
|
* Walk up data frames for nested @partial-blockLon Ingram2016-08-161-0/+14
| | | | | | | | | | | | | | The root cause of #1218 is that `invokePartial` creates a stack of data frames for nested partial blocks, but `resolvePartial` always uses the value at top of the stack without "popping" it. The result is an infinite recursive loop, as references to `@partial-block` in the partial at the top of the stack resolve to itself. So, walk up the stack of data frames when evaluating. This is accomplished by 1) setting the `partial-block` property to `noop` after use and 2) using `_parent['partial-block']` if `partial-block` is `noop` Fix #1218
* 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
|
* Add explicitPartialContext compiler flagkpdecker2015-09-011-0/+15
| | | Fixes #1032
* Implement inline partialskpdecker2015-08-221-0/+39
| | | | | | Allows for partials to be defined within the current template to allow for localized code reuse as well as for conditional behavior within nested partials. Fixes #1018
* Implement partial blockskpdecker2015-08-221-0/+61
| | | | | | This allows for failover for missing partials as well as limited templating ability through the `{{> @partial-block }}` partial special case. Partial fix for #1018
* Fix partial handling with different contextkpdecker2015-08-031-0/+6
|
* Add tests for string contextskpdecker2015-05-061-0/+7
| | | | Fixes #1013
* Add full support for es6kpdecker2015-04-161-107/+106
| | | | | | | | 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
* Add support for dynamic partial nameskpdecker2015-01-181-0/+26
| | | | | | | | | Uses the subexpression syntax to allow for dynamic partial lookups. Ex: ``` {{> (helper) }} ``` Fixes #933
* Update statement node ASTskpdecker2014-11-261-0/+6
|
* Propagate options for client compiled partialskpdecker2014-11-081-0/+9
| | | Fixes #901
* Merge pull request #870 from max-b/masterKevin Decker2014-11-081-6/+13
|\ | | | | Registering undefined partial throws exception.
| * Fixing indentation in spec/partials.jsMaxb2014-09-191-6/+6
| |
| * Registering undefined partial throws exception.Maxb2014-09-191-0/+7
| |
* | Add preventIndent option for partialskpdecker2014-11-021-0/+8
|/ | | | | 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
* Fix compat partial exec without datakpdecker2014-08-151-6/+12
|
* Additional test coveragekpdecker2014-08-151-1/+11
|
* Increase test coverage a touchkpdecker2014-08-141-0/+3
|
* Implement partial recursive lookupkpdecker2014-08-141-0/+6
|
* Inherit compat flag for partialskpdecker2014-08-141-0/+9
|
* Add additional tests for standalone partialskpdecker2014-08-121-1/+19
|
* Test more concrete behavior in partial hash testkpdecker2014-01-171-4/+4
|
* Implement partial hash evaluationkpdecker2014-01-171-0/+8
|
* Handle empty responses from partialskpdecker2013-12-231-0/+6
| | | Fixes #675
* Use shouldThrow helper for test assertskpdecker2013-12-231-4/+4
|
* Protect context-lookups from undefined valueskpdecker2013-11-031-0/+7
| | | | Fixes #166 Fixes #587
* Move more testing mutations into the environmentYehuda Katz2013-07-261-2/+2
|
* Refactor qunit unit testskpdecker2013-06-011-0/+119
Allows for testing node, browser, and precompiled modes in the node tests. Also reorganizes the qunit spec file to provide better organization.