         path = "text!#{path}.#{format}"
         dfd = module.deferred()
         module.require [path], (tpl)->
-          dfd.resolve setupTemplate(tpl, tplName) 
+          dfd.resolve setupTemplate(tpl, tplName)
         , (err)->
-          console.error "Error loading template", tplName, err.message 
-          dfd.reject err 
+          console.error "Error loading template", tplName, err.message
+          dfd.reject err
         dfd
 
   _execute = (type, args...)->

      module.domFind = app.core.dom.find
      module.deferred = app.core.data.deferred
      app.core.template.load = (names=[], ref, el, format="hbs") ->
        names = [names] if _.isString(names)
        componentName = ref.replace('__component__$', '').split('@')[0]
        dfd = app.core.data.deferred()
        tpls = _.map names, _.bind(lookupTemplate, undefined, componentName, el, ref, format)
        app.core.data.when(tpls...).then ->
          dfd.resolve _.object(names, [].slice.apply(arguments))
        , (err)->

define ['underscore', 'lib/hullbase', 'handlebars'], (_, Hull, Handlebars) ->

  strategies =
    app: ['hullGlobal', 'meteor', 'sprockets', 'hullDefault']
    dom: ['inner', 'global']
    server: ['require']
