class Phlex::SGML
def __final_call__(buffer = +"", context: Phlex::Context.new, view_context: nil, parent: nil, &block)
- Api: - private
def __final_call__(buffer = +"", context: Phlex::Context.new, view_context: nil, parent: nil, &block) @_buffer = buffer @_context = context @_view_context = view_context @_parent = parent block ||= @_content_block return "" unless render? around_template do if block if is_a?(DeferredRender) __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 << context.target unless parent end