aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/inline_template.rb
blob: 87c012d18168c2ec963e4f2bffa9d7cbf24fb164 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module ActionView #:nodoc:
  class InlineTemplate < Template #:nodoc:
    
    def initialize(view, source, locals = {}, type = nil)
      @view = view
      @finder = @view.finder
      
      @source = source
      @extension = type
      @locals = locals || {}
      
      @handler = self.class.handler_class_for_extension(@extension).new(@view)
    end
    
    def method_key
      @source
    end
    
  end
end