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: Improve syntax of the "for" directive by keeping everything in parens #189

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

Comments

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

patrick-steele-idem commented Dec 22, 2015

New:

<for(item in ['red', 'green', 'blue'] | separator=', ' status-var=loop)>
    <div>
        ${item} - ${loop.isFirst()} - ${loop.isLast()} - ${loop.getIndex()} - ${loop.getLength()}
    </div>
</for>

Old:

<for each="item in ['red', 'green', 'blue']" separator=", " status-var="loop">
    ${item} - ${loop.isFirst()} - ${loop.isLast()} - ${loop.getIndex()} - ${loop.getLength()}
</for>

@patrick-steele-idem patrick-steele-idem self-assigned this Dec 22, 2015

@patrick-steele-idem patrick-steele-idem added this to the 3.0 milestone Dec 22, 2015

@patrick-steele-idem patrick-steele-idem changed the title Marko v3: Improve syntax for tag by keeping everything in parens Marko v3: Improve syntax of the "for" directive by keeping everything in parens Feb 19, 2016

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.