 
   _coffeeHeaders: ->
     ___  = @_tabAsSpaces()
-
+    __ = "  "
     """
+_TMPL_ = (__toffee_run_input) ->
 #{if @browserMode then '' else getCommonHeaders false, @autoEscape }
-tmpl = toffee.templates["#{@bundlePath}"]  =
-  bundlePath: "#{@bundlePath}"
-tmpl.render = tmpl.pub = (__locals) ->
-#{___}_to = (x) -> __locals.__toffee.out.push x
-#{___}_ln = (x) -> __locals.__toffee.lineno = x
-#{___}_ts = (x) -> __locals.__toffee.state  = x
-#{___}toffee.__augmentLocals __locals, "#{@bundlePath}"
-
-#{___}`with (__locals) {`
-#{___}__toffee.out = []
-"""
+#{__}tmpl = toffee.templates["#{@bundlePath}"]  =
+#{__}  bundlePath: "#{@bundlePath}"
+#{__}tmpl.render = tmpl.pub = (__locals) ->
+#{__}#{___}_to = (x) -> __locals.__toffee.out.push x
+#{__}#{___}_ln = (x) -> __locals.__toffee.lineno = x
+#{__}#{___}_ts = (x) -> __locals.__toffee.state  = x
+#{__}#{___}toffee.__augmentLocals __locals, "#{@bundlePath}"
+#{__}
+#{__}#{___}`with (__locals) {`
+#{__}#{___}__toffee.out = []
+#{__}"""
 
   _coffeeFooters: ->
     ___    = @_tabAsSpaces()
+    __ = "  "
     """\n
-#{___}__toffee.res = __toffee.out.join ""
-#{___}return __toffee.res
-#{___}`true; } /* closing JS 'with' */ `
-# sometimes we want to execute the whole thing in a sandbox
-# and just output results
-if __toffee_run_input?
-#{___}return tmpl.pub __toffee_run_input
-"""
+#{__}#{___}__toffee.res = __toffee.out.join ""
+#{__}#{___}return __toffee.res
+#{__}#{___}`true; } /* closing JS 'with' */ `
+#{__}# sometimes we want to execute the whole thing in a sandbox
+#{__}# and just output results
+#{__}if __toffee_run_input?
+#{__}#{___}return tmpl.pub __toffee_run_input
+#{__}"""
 
 exports.view                = view
 exports.getCommonHeaders    = getCommonHeaders

    ###
    returns [err, str]
    ###
    script = @_toScriptObj()
    res    = null
    if not @error
      try
        ctx['__toffee_run_input'] = options
        vm.runInContext(script, ctx)
#        sandbox = { __toffee_run_input: options }
#        script.runInNewContext sandbox
        res = ctx.__toffee_run_input.__toffee.res
#        delete sandbox.__toffee_run_input.__toffee
      catch e
        @error = new toffeeError @, errorTypes.RUNTIME, e


      if not @error
        d = Date.now()
        try
          @javaScript = coffee.compile c, {bare: true}
        catch e
          @error = new toffeeError @, errorTypes.COFFEE_COMPILE, e
        if @minimize and not @error
