Module: NanocFuel::Helpers::Facebook
- Defined in:
- lib/nanoc_fuel/helpers/facebook.rb
Instance Method Summary collapse
- #fb_comments(url, num_posts, width) ⇒ Object
- #fb_init(app_id) ⇒ Object
- #fb_like_btn(layout, width, show_faces, send) ⇒ Object
Instance Method Details
#fb_comments(url, num_posts, width) ⇒ Object
12 13 14 15 |
# File 'lib/nanoc_fuel/helpers/facebook.rb', line 12 def fb_comments(url, num_posts, width) template = File.read(File.("../templates/facebook/fb_comments.haml", __FILE__)) Haml::Engine.new(template).render(Object.new, :url => url, :num_posts => num_posts, :width => width) end |
#fb_init(app_id) ⇒ Object
7 8 9 10 |
# File 'lib/nanoc_fuel/helpers/facebook.rb', line 7 def fb_init(app_id) template = File.read(File.("../templates/facebook/fb_init.haml", __FILE__)) Haml::Engine.new(template).render(Object.new, :app_id => app_id) end |
#fb_like_btn(layout, width, show_faces, send) ⇒ Object
17 18 19 20 |
# File 'lib/nanoc_fuel/helpers/facebook.rb', line 17 def fb_like_btn(layout, width, show_faces, send) template = File.read(File.("../templates/facebook/fb_like_btn.haml", __FILE__)) Haml::Engine.new(template).render(Object.new, :layout => layout, :width => width, :show_faces => show_faces, :send => send) end |