Skip to content
Hamlit extension to support capturing via yield
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib/hamlit
spec
.gitignore
.rspec
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
hamlit-block.gemspec

README.md

Hamlit::Block

Hamlit extension to support capturing via yield

Installation

Add this line to your application's Gemfile:

gem 'hamlit-block'

And then execute:

$ bundle

Usage

Use Hamlit::Block::Engine instead of Hamlit::Engine. Contents inside script block is not rendered but available via yield.

See spec for detail.

For Tilt

require 'hamlit/block'

would be enough. It will override :haml registration of Tilt with Hamlit::Block::Template automatically.

License

The gem is available as open source under the terms of the MIT License.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.