Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for iterable objects in {{#each}} helper (#1557)
* Added support for iterable object in {{#each}} helper Currently {{#each}} helper supports either arrays, or objects, however nowadays you can define custom iterable objects by overriding a special method called Symbol.iterator, which results in empty result being rendered. * improved a test for iterables in {{#each}} returning empty result * #each helper: using ES5 instead of generator functions in tests * #each helper: using ES5 in the helper itself
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters