rails/actionpack/lib/action_view/inline_template.rb

17 lines
386 B
Ruby
Raw Normal View History

module ActionView #:nodoc:
class InlineTemplate #:nodoc:
2008-07-05 17:05:50 +00:00
include Renderable
def initialize(view, source, locals = {}, type = nil)
@view = view
@source = source
@extension = type
@locals = locals || {}
@method_segment = "inline_#{@source.hash.abs}"
@handler = Template.handler_class_for_extension(@extension).new(@view)
end
end
end