Guest User

Untitled

a guest
Dec 24th, 2015
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.59 KB | None | 0 0
  1. <head>
  2.     <title>ProteinTracker</title>
  3. </head>
  4.  
  5. <body>
  6. <h1>ProteinTracker</h1>
  7. {{> userDetails}}
  8. {{> userHistory}}
  9.  
  10.  
  11. </body>
  12.  
  13. <template name="userDetails">
  14.     {{#with user}}
  15.         <h2>Total: <span>{{total}}</span></h2>
  16.         <h2>Goal: <span>{{goal}}</span></h2>
  17.         <h3>Enter Amount:</h3>
  18.         <input type="text" id="amount"/>
  19.         <input type="submit" id="addAmount" value="Add Protein"/>
  20.     {{/with}}
  21. </template>
  22.  
  23.  
  24. <template name="userHistory">
  25.     <h2>Last five entries: </h2>
  26.     {{#each historyItem}}
  27.     <p>{{date}} - {{value}}</p>
  28.     {{/each}}
  29. </template>
Add Comment
Please, Sign In to add comment