JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://cloud.github.com/downloads/emberjs/ember.js/ember-latest.min.js"></script>
<script type='text/x-handlebars' data-template-name='item'><span>{{name}}</span></script>
<div id="main"></div>
JavaScript
App = Ember.Application.create({});
App.Item = Ember.View.extend({
templateName: "item",
didInsertElement: function(){
this._super();
this.$("span").after(this.$("span").offset().top)
}
});
var item = App.Item.create({name: "Awesome thing"})
item.appendTo("#main");
var item = App.Item.create({name: "Second thing"})
item.appendTo("#main");