Skip to content

Rails plugin that provides a queuing system that hooks into content_for

License

Notifications You must be signed in to change notification settings

mumboe/queue_for

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QueueFor
========

Provides an orderable queue of content that works with :yield

Example
=======

Block Form - - - -

  <%queue_for :name=>"sidebar" do%>
    <div class="sb_block">Awesome Content</div>
  <%end%>

String Form (say in a helper) - - - -

  queue_for({:name => "sidebar", :index=>1, :content=>more_content_for_sidebar})

Finally in layouts/application.html.erb

  <div class="sb"><%= yield :sidebar -%></div>


Copyright (c) 2009 [mumboe.com] released under the MIT license

About

Rails plugin that provides a queuing system that hooks into content_for

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages