2008-04-19 15:16:32 +00:00
|
|
|
module ActionView #:nodoc:
|
2008-07-03 18:06:00 +00:00
|
|
|
class InlineTemplate #:nodoc:
|
2008-07-05 17:05:50 +00:00
|
|
|
include Renderable
|
2008-07-03 18:06:00 +00:00
|
|
|
|
2008-04-19 15:16:32 +00:00
|
|
|
def initialize(view, source, locals = {}, type = nil)
|
|
|
|
@view = view
|
2008-06-16 02:22:27 +00:00
|
|
|
|
2008-04-19 15:16:32 +00:00
|
|
|
@source = source
|
|
|
|
@extension = type
|
|
|
|
@locals = locals || {}
|
2008-06-16 02:22:27 +00:00
|
|
|
|
2008-07-06 04:54:11 +00:00
|
|
|
@method_segment = "inline_#{@source.hash.abs}"
|
2008-07-04 02:08:27 +00:00
|
|
|
@handler = Template.handler_class_for_extension(@extension).new(@view)
|
2008-04-19 15:16:32 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|