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

Support <template> #38

Open
LeaVerou opened this issue Feb 26, 2016 · 2 comments
Open

Support <template> #38

LeaVerou opened this issue Feb 26, 2016 · 2 comments

Comments

@LeaVerou
Copy link
Member

Useful for collection items without a container, e.g.:

<dl>
  <template data-multiple property=person>
    <dt>name</dt>
    <dd property=name></dd>
  </template>
</dl>
@karger
Copy link
Collaborator

karger commented Feb 26, 2016

Unclear to me what this does.

On 2/25/2016 9:24 PM, Lea Verou wrote:

Useful for collection items without a container, e.g.:

name


Reply to this email directly or view it on GitHub
https://github.com/LeaVerou/wysie/issues/38.

@LeaVerou
Copy link
Member Author

LeaVerou commented Jul 7, 2016

This will also make things easier when shadow DOM is involved. Consider the following to render a dynamic <select>:

<select>
    <template property="country" data-multiple>
        <option value="[code]">[name]</option>
        <meta property="name">
        <meta property="code">
    </template>
</select>

Nothing else works for that, since any other markup inside <select> or <option> gets dropped.
Therefore, I'm bumping this to a Public Release milestone.

@LeaVerou LeaVerou added this to the Public release milestone Jul 7, 2016
@LeaVerou LeaVerou removed this from the Public release milestone Nov 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants