<NME> render.rb
<BEF> # encoding: utf-8

require "rango" # logger
require "rango/template"

module Rango
  module RenderMixin
    extend self # so you can use Rango::RenderMixin.render

    # @since 0.0.2
    def render(path, scope = Object.new, context = Hash.new)
      scope, context = Object.new, scope if context.empty? && scope.is_a?(Hash)
      #Rango.logger.inspect(context: context)
      template = TemplateInheritance::Template.new(path, scope)
      return template.render(context)
    end
  end
end
    # TODO: extensions handling
    # @since 0.0.2
    def render(template, locals = Hash.new)
      if self.class.respond_to?(:before_render_filters) # generic views, plain rack etc
        run_filters2 self.class.before_render_filters, template, locals
      end

<MSG> Request into locals

<DFF> @@ -73,6 +73,7 @@ module Rango
     # TODO: extensions handling
     # @since 0.0.2
     def render(template, locals = Hash.new)
+      locals = {request: self.request}.merge(locals)
       if self.class.respond_to?(:before_render_filters) # generic views, plain rack etc
         run_filters2 self.class.before_render_filters, template, locals
       end

Request into locals