Skip to content

Instantly share code, notes, and snippets.

@AmirTugi
Last active December 26, 2018 00:50
Show Gist options
  • Select an option

  • Save AmirTugi/9e844042a28d5ea53b7f37fbb82c3f16 to your computer and use it in GitHub Desktop.

Select an option

Save AmirTugi/9e844042a28d5ea53b7f37fbb82c3f16 to your computer and use it in GitHub Desktop.
// Use !{var} to use unescaped conent
style(type="text/css") !{compiledStyle}
h1.title Invoice number ##{invoice.id}
p.created-at #{invoice.createdAt}
h3 For: #{invoice.customer.number}
table
thead
tr
th #
th Item
th Price
tbody
each line in invoice.lines
tr
td #{line.id}
td #{line.item}
td #{line.price}
div.table-footer Shipping: $#{invoice.shipping}
div.table-footer total: $#{invoice.total}
h3.comments-title Comments
p #{invoice.comments}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment