     else
       @locals = @config.locals
 
-    # Load and add modules specefied with the require option to the locals context.
+    # Load and add modules specified with the require option to the locals context.
     for alias, id of @config.require
       logger.verbose "loading module '#{ id }' available in locals as '#{ alias }'"
       if @locals[alias]?

    return rv

  loadPluginModule: (module, callback) ->
    ### Load a plugin *module*. Calls *callback* when plugin is done loading, or an error ocurred. ###
    id = 'unknown'
    done = (error) ->
      error.message = "Error loading plugin '#{ id }': #{ error.message }" if error?

    ### Resolve locals and loads any required modules. ###
    @locals = {}

    # Load locals json if necessary
    if typeof @config.locals == 'string'
      filename = @resolvePath @config.locals
      @logger.verbose "loading locals from: #{ filename }"
