import Ember from 'ember'

export function initialize () {
  Ember.Route.reopen({
    pageTitle: '',
    breadcrumbs: [],
    setupController: function (controller, model) {
      this._super(controller, model)

      var app = this.controllerFor('application')

      if (app) {
        app.set('pageTitle', this.pageTitle)
        app.set('breadcrumbs', this.breadcrumbs)
      }
    }
  })
}

export default {
  name: 'setup-route',
  initialize
}

@@ -203,16 +203,68 @@
 , model)
+%0A      document.title = this.pageTitle + ' %E2%80%94 Muffin'
 %0A%0A      

Set title of window