h1. Viewaide
Viewaide contains a set of view helpers made to standardize basic HTML structures and provide simple Blueprint CSS integration.
h2. Installation
Viewaide is a gem and should be declared in your @config/environment.rb@.
config.gem "viewaide"
h2. Usage
Viewaide has a handful of helpers for things like recordsets and zebra rows (@
@s and @@s), columns (@@), fieldsets, sets (for input elements), and more.
For a full overview of what the library does, head to "the documentation":http://yardoc.org/docs/frames/joshuaclayton-viewaide. Here's a brief overview.
# layouts/admin.html.erb
<%= application_name %>
<%= stylesheet_link_tag *%w(screen my-screen) %>
<%= yield :head %>
<% body :admin do %>
<% container do %>
<% column :header do %>
<%= link_to "#{application_name} - Admin", admin_root_path %>
<%= render :partial => "layouts/admin_navigation" %>
<% end %>
<% column do %>
<%= messages(flash) %>
<%= yield :page_title %>
<%= yield %>
<% end %>
<%= render :partial => "layouts/footer" %>
<% end %>
<%= yield :footer %>