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

Add documentation for boolean attributes #18

Closed
patrick-steele-idem opened this issue Jan 25, 2015 · 0 comments
Closed

Add documentation for boolean attributes #18

patrick-steele-idem opened this issue Jan 25, 2015 · 0 comments
Labels
type:docs Related to documentation/website

Comments

@patrick-steele-idem
Copy link
Contributor

Input data:

{
    options: [
        { 
            value: 'red',
            selected: false
        },
        { 
            value: 'green',
            selected: true
        },
        { 
            value: 'blue',
            selected: false
        }
    ]
}

Input Marko template:

<select>
    <option value="${option.value}" selected="${option.selected}" for="option in data.options">
        ${option.value}
    </option>
</select>

Output HTML:

<select>
    <option value="red">red</option>
    <option value="green" selected>green</option>
    <option value="blue">blue</option>
</select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:docs Related to documentation/website
Projects
None yet
Development

No branches or pull requests

1 participant