All things Ruby on Rails, Content Management Systems and Web Development
Thursday, January 13, 2011
Capture HAML to yield in a layout
Rails has the content_for method which allows you to yield content into a layout later in the rendering phase of a view. Often I need the same functionality when using StaticMatic. Since I'm using Haml this is easier to do.