    # File lib/chef/mixin/template.rb, line 38
          def render_template(template, context)
            begin
              eruby = Erubis::Eruby.new(template)
              output = eruby.evaluate(context)
            rescue Object => e
              raise TemplateError.new(e, template, context)
            end
            Tempfile.open("chef-rendered-template") do |tempfile|
              tempfile.print(output)
              tempfile.close
              yield tempfile
            end
          end