Skip to content

Instantly share code, notes, and snippets.

@essamalsaloum
Forked from AmirTugi/tea-school-example.pug
Created December 26, 2018 00:50
Show Gist options
  • Select an option

  • Save essamalsaloum/e2a82ec24bfb67f85cb8d56754de5c11 to your computer and use it in GitHub Desktop.

Select an option

Save essamalsaloum/e2a82ec24bfb67f85cb8d56754de5c11 to your computer and use it in GitHub Desktop.

Revisions

  1. Amir Tugendhaft revised this gist Oct 24, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tea-school-example.pug
    Original file line number Diff line number Diff line change
    @@ -23,6 +23,6 @@ table
    div.table-footer Shipping: $#{invoice.shipping}
    div.table-footer total: $#{invoice.total}

    h3.comments Comments
    h3.comments-title Comments
    p #{invoice.comments}

  2. Amir Tugendhaft created this gist Oct 24, 2018.
    28 changes: 28 additions & 0 deletions tea-school-example.pug
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    // 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 Comments
    p #{invoice.comments}