Hamlit extension to support capturing via yield
Add this line to your application's Gemfile:
gem 'hamlit-block'
And then execute:
$ bundle
Basically the same as Hamlit. require 'hamlit/block'
may be necessary. Contents inside script block is not rendered but available via yield
.
The gem is available as open source under the terms of the MIT License.