aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/inline_template.rb
blob: 1ccb23a3fc8607efb9dc07621ce76a2532437cbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module ActionView #:nodoc:
  class InlineTemplate #:nodoc:
    include Renderer

    def initialize(view, source, locals = {}, type = nil)
      @view = view

      @source = source
      @extension = type
      @locals = locals || {}

      @method_key = @source
      @handler = Template.handler_class_for_extension(@extension).new(@view)
    end
  end
end