What you are trying to do can be achieved by defining the didInsertElement hook on all your view's and after getting the DOM element's id you can execute what ever jQuery code you might need. Since you want this to be executed on 'all' your view's you could write a general view from which all the view's that need the code to be executed do extend from.
Example:
App.GeneralView = Ember.View.extend({
didInsertElement: function() {
var width = 0;
$('.photos article').each(function(){
width = width + $(this).width();
});
$('.photos').width(width);
}
});
App.IndexView = App.GeneralView.extend();
...
Note if need to get the view's id you can access it with this.get('elementId'), I've also modified your jsbin, see here for a working version.
Hope it helps.