class Locmare.Profiler extends Backbone.View tagName: 'div' initialize: (options) -> @item_name = options.item_name @item = options.item # feasible show parsed extend data @item.boosts 'post' @operators = options.operators @profiler_manifest = LocalManifest.manifest().profilers[@item_name] @template_dir = 'templates-profiler-' _this = this @item.fetch().done -> _this.header = new Locmare.ProfilerModule.Header({profiler: _this}) _this.columns = new Locmare.ProfilerModule.Column({profiler: _this}) _this.associations = new Locmare.ProfilerModule.Association({'profiler': _this, association_manifest: _this.profiler_manifest.associations}) _this.render() render: () -> this.$el.html('') this.$el.append(@header.render().el) this.$el.append(@columns.render().el) this.$el.append(@associations.render().el) this peta: () -> Manifest.manifest().items[@item_name] model: () -> Manifest.item_name_to_model @item_name image_dir: () -> '/images/' class Locmare.ProfilerModule