pusewicz/twitter-bootstrap-markup-rails — pull request #15 by lacco (2012-10-03 15:46:17+00:00)
Title: Enhancements for buttons

I just found this amazing gem for building bootstrap markup. I started converting my bootstrap code, and stumbled upon some missing features:

* ```bootstrap_button```: link and text are optional. Default value for link is ```"#"```, for text ```""```.

```haml
= bootstrap_button :class => "foo"
```

* ```bootstrap_button```: text can be a block

```haml
= bootstrap_button do
- capture_haml do
%span.picture
%span.text Foo
```

* ```bootstrap_button_dropdown```: support for split dropdowns

```haml
= bootstrap_button_dropdown :split => true do
[...]
```

* ```bootstrap_button_dropdown```: added option ```button_options``` that is passed to the dropdown button and its caret button (if exists)

```haml
= bootstrap_button_dropdown :button_options => {:type => "btn-success"} do
[...]
```

* ```bootstrap_button_dropdown```: added option ```menu_html_options``` that is passed to the dropdown menu

```haml
= bootstrap_button_dropdown :menu_html_options => {:class => "pull-right"} do
[...]
```

What do you think, might this be interesting for others?