TheDataRoleBlockRails
Mix of data-role
, data-block
solutions from:
Gem provide
- marker
@
fordata-role
and marker@@
fordata-block
forSLIM
andHAML
- JQuery plugin with selectors
$('@role-name')
and$('@@block-name')
and methodsaddRole
,removeRole
,addBlock
,removeBlock
Installation
Add this line to your application's Gemfile:
gem 'the_data_role_block_rails'
And then execute:
bundle
Usage
app/assets/javascripts/application.js
//= require /jquery.data-role-block