0.0
Repository is archived
Low commit activity in last 3 years
No release in over a year
Hamlit extension to support capturing via yield
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 10.0
~> 3.0

Runtime

>= 2.10.0
 Project Readme

Hamlit::Block

Note: This was made for Hamlit v2 and older. From Hamlit v3, this is the default behavior outside Rails.

Please use Hamlit v3 or older instead.


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.