5292899c9a
Updated Instiki to Rails 2.1 RC1 (aka 2.0.991).
21 lines
419 B
Ruby
21 lines
419 B
Ruby
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
|