Sha256: 951290ff438e8848916b3a8ef2885f24a5d628ea48d95bce3bbe2f3ee9563e44
Contents?: true
Size: 663 Bytes
Versions: 3
Compression:
Stored size: 663 Bytes
Contents
# Hamlit::Block Hamlit extension to support capturing via yield ## Installation Add this line to your application's Gemfile: ```ruby 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](spec/hamlit/block_spec.rb) for detail. ### For Tilt ```rb 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](http://opensource.org/licenses/MIT).
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hamlit-block-0.7.1 | README.md |
hamlit-block-0.7.0 | README.md |
hamlit-block-0.6.0 | README.md |