Skip to content

Instantly share code, notes, and snippets.

@yamagata-kozo
Created December 18, 2012 03:34
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/4324767 to your computer and use it in GitHub Desktop.
Save yamagata-kozo/4324767 to your computer and use it in GitHub Desktop.
h1 'Fruits (haml)'
table ->
thead ->
tr ->
th 'Name'
th 'Price'
th 'Stock'
tbody ->
- for fruit in @fruits
tr ->
td fruit.name
td '¥' + fruit.price
td fruit.stock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment