0.0
No commit activity in last 3 years
No release in over 3 years
Shortcuts for data-role and data-block (to use with evil-bloks-rails)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 4.0
 Project Readme

Role Block Haml

Role Block Haml - is a gem, that adds some awesome shortcuts for data-role and data-block attributes to Haml parser. Especially useful when combined with Evil Blocks by Andrey Sitnik.

This version is for HAML v4.

Usage

@@todo
  %span@linker
  @actor

Is converted into:

<div data-block="todo">
    <span data-role="linker"></span>
    <div data-role="actor"></div>
</div>

Install

Ruby on Rails

Add role_block_haml gem to Gemfile:

gem "role_block_haml"

Ruby

Change HAML parser to support shortcuts:

RoleBlockHaml.install_to_haml!