No commit activity in last 3 years
No release in over 3 years
Provide useful helper methods for Font Awesome.
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

FontAwesomeHelper

Installation

Add this to your Gemfile:

gem 'font-awesome-helper

and then run bundle install.

Usage

fa_icon 'github'
# => <i class="fa fa-github"></i>

fa_icon('github') { |i| "#{i} izumin5210" }
# => <i class="fa fa-github"></i> izumin5210

fa_icon('caret-down') { |i| "dropdown #{i}" }
# => dropdown <i class="fa fa-caret-down"></i>

fa_icon 'home fw'
# => <i class="fa fa-home fa-fw"></i>

fa_icon 'quote-left border 3x', class: 'pull-left'
# => <i class="fa fa-quote-left fa-border pull-left"></i>

fa_ul do
  fa_li('twitter') { 'twitter.com/izumin5210' }
  fa_li('github') { 'github.com/izumin5210' }
  fa_li('tumblr') { 'tumblr.izumin.info' }
end

# => <ul class="fa-ul">
# =>   <li><i class="fa fa-twitter fa-li"></i>twitter.com/izumin5210</li>
# =>   <li><i class="fa fa-github fa-li"></i>github.com/izumin5210</li>
# =>   <li><i class="fa fa-tumblr fa-li"></i>tumblr.izumin.info</li>
# => </ul>

License

FontAwesomeHelper is licensed under MIT-LICENSE.