We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The web standard for custom elements doesn't support a declarative way of creating them entirely from within markup. https://www.html5rocks.com/en/tutorials/webcomponents/customelements/
I propose Teddy should support something like:
<template registerElement='x-foo'> <p>sample markup structure</p> <p>${varname} or {varname}</p> </template>
If that markup is parsed by Teddy, then it becomes possible to use the custom element <x-foo> like so:
<x-foo>
<x-foo varname='hello world'></x-foo>
Or:
<x-foo> <varname>hello world</varname> </x-foo>
Resulting in the following rendered template:
<p>sample markup structure</p> <p>hello world</p>
This should probably be done separately from teddy as a polyfill for some declarative web component W3C spec, then included in Teddy.
The text was updated successfully, but these errors were encountered:
kethinov
No branches or pull requests
The web standard for custom elements doesn't support a declarative way of creating them entirely from within markup. https://www.html5rocks.com/en/tutorials/webcomponents/customelements/
I propose Teddy should support something like:
If that markup is parsed by Teddy, then it becomes possible to use the custom element
<x-foo>
like so:Or:
Resulting in the following rendered template:
This should probably be done separately from teddy as a polyfill for some declarative web component W3C spec, then included in Teddy.
The text was updated successfully, but these errors were encountered: