Blog

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.

Please note this blog is no longer maintained. Please visit CivilCode Inc.