Closed little-bobby-tables closed 7 years ago
Thanks for your comments, @Rakoth! I've added a test case for '
without content and split text_item
into verbatim_text
and comment
.
However, I've noticed that credo now reports the TextBlock.render function as having excessively high ABC complexity — do you have any ideas on how to refactor it?
@little-bobby-tables Since it is already in a separate module, we could simply extract parts of it into private functions.
I've noticed that Slim handles HTML comments (
/!
) just like verbatim text nodes (|
and'
) — complete with interpolation — so I decided to move the common semantics into atext_block
rule.The change introduces:
/!
)/
)What do you think?