Represent
DRY, SEO-friendly Rails Views
Usage
Install
sudo gem install represent
Helpers
Metadata Helpers
Adding metadata to your views is easy (app/views/pages/index.html.erb
):
<% title @post.title %>
<% description @post.description %>
<% keywords @post.tag_list %>
<% body_class "post post-template" %>
<div id="content">...</div>
Default metadata is just as easy (app/views/layouts/application.html.erb
):
<%= meta_tags "My Site",
:keywords => "Rails 3, jQuery",
:description => "This is what Facebook displays" %>
System Helpers
Need to check what browser it is? No problem.
Layout Helpers
Would you like to create a nested menu, or a grid? No problem.