   $ = require('jquery')
   _ = require('underscore')
   Backbone = require('backbone')
+  settings = require('cs!settings')
 
   class Region
     constructor: (el, parent) ->

          else
            data[key] = value

      @_renderDom(data)

    render: () ->

    _renderDom: (data) ->
      @$el?.html(@template?(data) or @template)

    # Update page title
    updateTitle: () ->
      if @pageTitle
        document.title = settings.titlePrefix + @pageTitle

    _render: () ->
      data = @model?.toJSON() or @collection?.toJSON() or {}

