Re:X-Tag - a cross-browser web components library
by Navarr on Saturday June 16, 2012 @02:05PM
(#4121181)
No, you'd still have to scour the web for each individual library of tags. Since they require the .register() on the page, from what I understand.
Though your last part, with <require /> is fascinating and would greatly improve this.
1. Scour the web for 1 plugin
2. Add 1 plugin script include to your page
3. Copy/type 10 new HTML tags (which you'd need to do anyways)
4. Add attributes, for which someone will release a Light Table plugin (eventually) to fetch standardized documentation.
5. Only repeat steps 3 and 4.
I'm very excited to see something like NPM for tag handlers. We might even see something like <require lib="jquery" source="google"> tags that transform into <script> tags that pull things like jQuery from CDNs. And if they use either the NPM model (unilateral publishing) or the Homebrew model (pull requests), and if they are half-decent moderators (to avoid squatting on common tags if they use the NPM model), I can see this transforming the way we write websites (although I'll always be a browserify fan myself).