Skip to content

Commit

Permalink
Remove deferred render
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Sep 23, 2024
1 parent 0224f9f commit d4e7cfe
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions lib/phlex/sgml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,10 @@ def call(buffer = +"", context: Phlex::Context.new, view_context: nil, parent: n
@_context.around_render do
around_template do
if block
if Phlex::DeferredRender === self
vanish(self, &block)
view_template
else
view_template do |*args|
if args.length > 0
__yield_content_with_args__(*args, &block)
else
yield_content(&block)
end
end
end
content = capture(self, &block)
view_template { @_context.buffer << content }
else
view_template
view_template { yield(self) }
end
end
end
Expand Down

0 comments on commit d4e7cfe

Please sign in to comment.