|
|
|
|
|
by rDr4g0n
4671 days ago
|
|
For those who are wondering why this even exists, it is part of what is being called Web Components. Currently we use libraries and semi-hacky techniques to handle templating and creating private scopes for javascript. Some of the many things web components will let us do is have a true private scope for a component, have built in browser-supported templating, and allow us to separate presentation details from data. Separation of concerns ftw! The value, to me, is that I can create true modules with html, css, and js that are scoped to ONLY inside the <x-whatever> tag I design (finally my css won't step on other css and I won't have to use unnecessary selectors to ensure that), and it will all be handled by the browser; no libraries needed (if web components becomes standardized of course). For now, google and mozilla are creating polyfills to add this functionality because they want people to get onboard with the web component thing so that it will drive adoption and a consensus on how it should work in the final spec. I definitely recommend doing some research on the pieces and how they fit together because they are, at the least, intriguing and possibly the somewhat distant future of web application development. http://www.polymer-project.org/faq.html http://www.w3.org/TR/2013/WD-components-intro-20130606/ http://www.html5rocks.com/en/tutorials/webcomponents/shadowd... http://www.html5rocks.com/en/tutorials/webcomponents/templat... |
|
Also it will be interesting to see how this shakes up the templating/data binding framework ecosystem.