Skip to content

Instantly share code, notes, and snippets.

@Franckapik
Created March 29, 2020 18:34
Show Gist options
  • Save Franckapik/c0470a3ecbcbe77a35c0c2dfaf1e9f6a to your computer and use it in GitHub Desktop.
Save Franckapik/c0470a3ecbcbe77a35c0c2dfaf1e9f6a to your computer and use it in GitHub Desktop.
Pug template issue
cart:
{ id: 776,
pid: '10',
userid: 'FA19EE7sBK6QlJ9pjTBUB6Wu4QlLGvZ9',
quantite: '1',
reduction: '0',
sous_total: '85',
montanttotal: 832,
fdp: 45,
prix: 85,
hauteur: 100,
poids: 30,
unites: 10,
quantite_totale: 10,
nom: 'Mario-7',
nbcolis: 3,
montanthorsfdp: 787,
cartid: '1584312398648' },
@Franckapik
Copy link
Author

pug template :

      each val in cart
        tr
          td(align='center')=val.name
          td(align='center')=val.quantite
          td(align='center')=val.sous_total

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