class Phlex::HTML

def __final_call__(buffer = +"", view_context: nil, parent: nil, &block)

def __final_call__(buffer = +"", view_context: nil, parent: nil, &block)
	@_target = buffer
	@_view_context = view_context
	@_parent = parent
	block ||= @_content_block
	return buffer unless render?
	around_template do
		if block
			if DeferredRender === self
				__vanish__(self, &block)
				template
			else
				template do |*args|
					if args.length > 0
						yield_content_with_args(*args, &block)
					else
						yield_content(&block)
					end
				end
			end
		else
			template
		end
	end
	buffer
end