MarionetteLabs / Sesame.js

Experimental Framework
0 stars 2 forks source link

web components #1

Open samccone opened 9 years ago

samccone commented 9 years ago

I think this should be a seamless layer that we should keep in mind.

thoughts?

jasonLaster commented 9 years ago

Agreed, I've always liked the Backbone Api for this, but i'd love to hear more ideas.

Clock = View.extend({

  tag: 'clock',
  attributes: function() {

    return {time: Time.now()}
  }
});

AnalogClock = Clock.extend({ 

   attributes: function() {
       var attrs = this.super();
       return {
           hand: ':clap:'
       }
  }
});
jamesplease commented 9 years ago

I suspect we might be able to draw inspiration from Ember's implementation of components, which are like views but completely isolated from the outside world.

Aside from isolation, I agree with @jasonLaster that Backbone's API handles Web Components pretty well.

jridgewell commented 9 years ago

Re: https://github.com/babel-plugins/babel-plugin-incremental-dom/issues/9 and https://github.com/marionettejs/backbone.marionette/issues/2734