Hamlit extension to support capturing via yield
Add this line to your application's Gemfile:
And then execute:
Hamlit::Block::Engine instead of
Hamlit::Engine. Contents inside script block is not rendered but available via
See spec for detail.
would be enough. It will override :haml registration of Tilt with
The gem is available as open source under the terms of the MIT License.