    # File lib/merb-core/controller/template.rb, line 202
        def self.compile_template(io, name, locals, mod)
          template = ::Erubis::BlockAwareEruby.new(io.read)
          _old_verbose, $VERBOSE = $VERBOSE, nil
          assigns = locals.inject([]) do |assigns, local|
            assigns << "#{local} = _locals[#{local.inspect}]"
          end.join(";")

          code = "def #{name}(_locals={}); #{assigns}; #{template.src}; end"
          mod.module_eval code, File.expand_path(io.path)
          $VERBOSE = _old_verbose

          name
        end