Skip to content

Instantly share code, notes, and snippets.

@ionas
Created September 12, 2010 15:13
Show Gist options
  • Save ionas/576174 to your computer and use it in GitHub Desktop.
Save ionas/576174 to your computer and use it in GitHub Desktop.
<%=
raw Liquid::Template.parse(
'<table>{% tablerow item in items cols: 2 %}
<td>{{ item.id }}</td>
<td>{{ item.created_at }}</td>
{% endtablerow %}
</table>
'
).render('items' => Element.find(:all).collect{|item| item.attributes})
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment