Set a tag of a collection rendering

Could useful set the tag of a collection when you render it, like backboneJS?

for example , given a partial:

<span><%=post.autor%></span>
<span><%=post.created_at%></span>

you could render inside two different tags

<ul>
<%= render @posts,:tag=>'li'%>
</ul>

output:

<ul>
<li>
 <span>one</span>
 <span>Tomorrow</span>
 </li>

<li>
 <span>two</span>
 <span>Today</span>
 </li>
</ul>

or

<div>
<%= render @posts,:tag=>'div'%>
</div>

output:

<div>
<div>
 <span>one</span>
 <span>Tomorrow</span>
 </div>

<div>
 <span>two</span>
 <span>Today</span>
 </div>
</div>

or without any tag

You can implement this yourself explicitly in the partial:

<% container ||= :div %>

<%= content_tag_for container, post do %>