Skip to content

Instantly share code, notes, and snippets.

@yamagata-kozo
Created December 18, 2012 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yamagata-kozo/4324769 to your computer and use it in GitHub Desktop.
Save yamagata-kozo/4324769 to your computer and use it in GitHub Desktop.
%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