Skip to content

Instantly share code, notes, and snippets.

@pravynandas
Created November 8, 2023 14:47
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 pravynandas/6ffda4d03bea941a7e2d025751c20b75 to your computer and use it in GitHub Desktop.
Save pravynandas/6ffda4d03bea941a7e2d025751c20b75 to your computer and use it in GitHub Desktop.
pub template to include styles in head section
doctype html
html(lang="en")
head
title= pageTitle
//- link(rel="stylesheet" href="statement.css")
style table td {
| border: 1px solid black;
| }
| table {
| border: 2px solid #200e91;
| }
| .summary thead {
| background: #d0d0e1
| }
body
table(class="summary")
thead
tr
td
pre Summary of Your Account Activity
td
tbody
tr
td= `Previous Balance: ${stmt.previousBal}`
td= `Account Name: ${info.card_number}`
@pravynandas
Copy link
Author

To have a cleaner template, move styles to a css and link reference it (commented line able).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment