   global._ = require('underscore')
   global.Backbone = require('backbone')
   global.Handlebars = require('handlebars')
-  global.rendr = {} if (!global.rendr)
-  if (config && config.paths)
+  global.rendr = {} if !global.rendr
+  if config && config.paths
     global.rendr.entryPath = config.paths.entryPath
     global.rendr.manifestDir = config.paths.publicDir
   else

exports.init = (conf, callback) ->
  config = conf

  # verify dataAdapter (apiProxy)
  if !config || !config.dataAdapter
    return callback(new Error("Missing dataAdapter"))
  exports.dataAdapter = config.dataAdapter

Router = require('./router')
viewEngine = require('./view_engine')

# ===== SHARED =====

