Simple starting point for Ember.js fiddles
by pangratz666
HTML
<script src="https://github.com/downloads/emberjs/ember.js/ember-0.9.5.js"></script>
<script type="text/x-handlebars" >
{{view App.TextField valueBinding="App.value" placeholder="Your name" name="your_name" }}
</script>
JavaScript
App = Ember.Application.create();
App.TextField = Ember.TextField.extend({
init: function() {
this._super();
var attributeBindings = this.get('attributeBindings');
attributeBindings.pushObject('name');
this.set('attributeBindings', attributeBindings);
},
didInsertElement: function() {
console.log(this.$().attr('name'));
}
});