     @locals.redirect = @redirect
     @locals.send = @send
     @locals.puts = puts
-  
+
     for k, v of @defs
       @locals[k] = v
 

      @locals[k] = ->
        v(@context, @, arguments)

    @locals.postrenders = @postrenders
    @locals.views = @views
    @locals.layouts = @layouts

      @locals[k] = ->
        v(@context, @, arguments)

    @locals.defs = @app.defs
    @locals.postrenders = @app.postrenders
    @locals.views = @app.views
    @locals.layouts = @app.layouts
