Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
%h1 Fruits (haml)
%table
%thead
%tr
%th Name
%th Price
%th Stock
%tbody
- for (var i = 0; i < fruits.length; i++) {
%tr
%td= fruits[i].name
%td= '&yen;' + fruits[i].price
%td= fruits[i].stock
- }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment