Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marko v3: Allow for target to be an iterator function #194

Closed
patrick-steele-idem opened this Issue Dec 28, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@patrick-steele-idem
Copy link
Contributor

patrick-steele-idem commented Dec 28, 2015

New in Marko v3:

<for(color in data.myColorsIterator)>
</for>

Where data.myColorsIterator might be the following function:

function myColorsIterator(callback) {
  callback('red');
  callback('green');
  callback('blue');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.