bloqhead
12/12/2013 - 8:18 PM

Repeating content generation with haml.

Repeating content generation with haml.

%div#portfolio-wrap
	%div#portfolio-tile-controls
		%a.prev <
		%a.next >
	%div#portfolio-tiles
		- figure = (0...40)
		- figure.each do |figure|
			%figure
				%a.jackbox{ :href => '/portfolio/test-item/', :data => { 'group' => 'iframe', 'width' => '1140', 'height' => '1140', 'title' => 'Amelia Island – Southern Beauty' } }
					%img{ :src => 'wp-content/themes/paradise/library/images/placeholder.gif', :title => '', :alt => '' }
					%figcaption
						%h3 Project Title