The capture_haml method has been removed as of HAML 6.0.0:
https://github.com/haml/haml/blob/main/CHANGELOG.md#600 Most Haml helpers are removed. For helpers generating general HTML tags, also consider using what your framework provides, e.g. Rails content_tag. Same applies to capture_haml, e.g. Rails capture.
This change is breaking for the code that works outside of Rails.
So I have implemented capture_haml
for Haml 6
Note that this does not work with block capturing support so you need to set the option {disable_capture: true}
.