Skip to content

Commit

Permalink
Update sgml.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Sep 24, 2024
1 parent f3b7093 commit 98f5b27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/phlex/sgml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def call(buffer = +"", context: Phlex::Context.new, view_context: nil, parent: n
@_context.around_render do
around_template do
if block
view_template do |*args|
content = (args.length == 0) ? capture(self, &block) : capture(*args, &block)
content = capture(self, &block)

view_template do
context = @_context
next if context.fragments && !context.in_target_fragment

Expand Down

0 comments on commit 98f5b27

Please sign in to comment.