2008-05-18 06:22:34 +02:00
|
|
|
module ActionView #:nodoc:
|
2008-10-27 07:47:01 +01:00
|
|
|
class InlineTemplate #:nodoc:
|
|
|
|
include Renderable
|
|
|
|
|
|
|
|
attr_reader :source, :extension, :method_segment
|
|
|
|
|
|
|
|
def initialize(source, type = nil)
|
2008-05-18 06:22:34 +02:00
|
|
|
@source = source
|
|
|
|
@extension = type
|
2008-10-27 07:47:01 +01:00
|
|
|
@method_segment = "inline_#{@source.hash.abs}"
|
2008-05-18 06:22:34 +02:00
|
|
|
end
|
2008-10-27 07:47:01 +01:00
|
|
|
|
|
|
|
private
|
|
|
|
# Always recompile inline templates
|
2009-02-04 21:26:08 +01:00
|
|
|
def recompile?
|
2008-10-27 07:47:01 +01:00
|
|
|
true
|
|
|
|
end
|
2008-05-18 06:22:34 +02:00
|
|
|
end
|
|
|
|
end
|