############################################################################### # setup ############################################################################### @posts = [ {:id => 1, :title => 'Hello there'}, {:id => 2, :title => 'Bye bye'} ] ############################################################################### <% xhtml(:transitional) do %> <% end %> or maybe, <% html(:frameset) do %> <% end %> ############################################################################### # iteration macros ############################################################################### <% table @posts, :class => "rside", :id => :posts %> <% ul :posts, :id => :posts %> <% ol :posts, :id => :posts %> <%= @posts.to_html(:h1) {|p| p[:title]}%>