Skip to content

Conversation

@ydah
Copy link
Contributor

@ydah ydah commented Dec 14, 2025

Extracted the block capturing logic from build_tag into a new private method capture_block_content. This resolves the TODO comment about creating a helper for universal capturing, improving code readability and maintainability.

The new method encapsulates the logic for choosing between Rails' capture method (when disable_capture is true) and Slim's native yielding, making it reusable and easier to maintain.

Extracted the block capturing logic from build_tag into a new private
method capture_block_content. This resolves the TODO comment about
creating a helper for universal capturing, improving code readability
and maintainability.

The new method encapsulates the logic for choosing between Rails'
capture method (when disable_capture is true) and Slim's native
yielding, making it reusable and easier to maintain.
@minad minad merged commit 3427365 into slim-template:main Dec 21, 2025
12 checks passed
@ydah ydah deleted the fixtodo branch December 21, 2025 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants