Re:Web Components with Mozilla’s Brick and X-Tag
by tyleregeto on Tuesday March 04, 2014 @10:52AM
(#7340920)
Looks really great, Polymer has always felt a little heavy to me. Brick seems like it would fit in my workflow better. Web components are going to be revolutionary for the web, I can't wait until we can start leveraging them.
Re:Web Components with Mozilla’s Brick and X-Tag
by ebidel on Wednesday March 05, 2014 @10:52AM
(#7347630)
Can you explain why it feels heavy? I would love to know more.
Polymer's entire stack is a la carte:
* platform.js - polyfills if you just want to use vanilla web component apis, today
* polymer.js - build declarative custom elements that use data-binding, touch, property observation, inheritance
* elements (ui/non-ui) - if you don't want to write any code at all :)
Sugaring libraries like Brick and Polymer that sit on top of the native web component APIs will, of course, be opinionated and do things a bit differently. However, the workflow for consuming components will be similar across the board. Something like `bower install brick-carousel polymer-tabs`. Then use the elements in your pages.
Re:Web Components with Mozilla’s Brick and X-Tag
by codepo8-hn on Tuesday March 04, 2014 @09:38AM
(#7340384)
X-Tag leverages the joint polyfill Google is the general maintainer of (Mozilla contribute code to it). It's the same one at the base of the Polymer stack.
Polymer, in comparison to Brick has a much more ambitious approach to being the framework to build apps with instead of aiding the creation of apps. Comparable with Dojo or .NET instead of jQuery.
Re:Web Components with Mozilla’s Brick and X-Tag
by spankalee on Tuesday March 04, 2014 @11:41AM
(#7341302)
I don't think that's really true about Polymer. It's still just a framework for creating custom elements. What features are you thinking of to compare to Dojo?
The big difference that I see is the template binding portion of Polymer which allows you to define an elements markup with data-binding template sort of like Angular.
Re:Web Components with Mozilla’s Brick and X-Tag
by mkelley82 on Wednesday March 05, 2014 @04:16AM
(#7346103)
The Polymer project from Google is something I've been following and I feel like it holds a lot of potential... Why hasn't it gained traction? Web components seem to be a great vision of the future of web design/development.
I don't see any mention of browser support?
Polymer's entire stack is a la carte:
* platform.js - polyfills if you just want to use vanilla web component apis, today
* polymer.js - build declarative custom elements that use data-binding, touch, property observation, inheritance
* elements (ui/non-ui) - if you don't want to write any code at all :)
Sugaring libraries like Brick and Polymer that sit on top of the native web component APIs will, of course, be opinionated and do things a bit differently. However, the workflow for consuming components will be similar across the board. Something like `bower install brick-carousel polymer-tabs`. Then use the elements in your pages.
Polymer, in comparison to Brick has a much more ambitious approach to being the framework to build apps with instead of aiding the creation of apps. Comparable with Dojo or .NET instead of jQuery.
The big difference that I see is the template binding portion of Polymer which allows you to define an elements markup with data-binding template sort of like Angular.