class Hanami::View::ERB::Filters::Trimming

Trims spurious spaces from ERB-generated text.

Deletes spaces around “<% %>” and leave spaces around “<%= %>”.

This is a copy of Temple::ERB::Trimming, with the one difference being that it descends into the sexp-tree by running ‘compile(e)` for any non-`:static` sexps. This is necessary for our implementation of ERB, because we capture block content by creating additional `:multi` sexps with their own nested content.

@api private @since 2.1.0