5e00cef13fa32808f405f4ea19072250267fe2c2
[depot.git] / inline_template.rb
1 module ActionView #:nodoc:
2 class InlineTemplate #:nodoc:
3 include Renderable
4
5 attr_reader :source, :extension, :method_segment
6
7 def initialize(source, type = nil)
8 @source = source
9 @extension = type
10 @method_segment = "inline_#{@source.hash.abs}"
11 end
12
13 private
14 # Always recompile inline templates
15 def recompile?(local_assigns)
16 true
17 end
18 end
19 end