Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <title>ProteinTracker</title>
- </head>
- <body>
- <h1>ProteinTracker</h1>
- {{> userDetails}}
- {{> userHistory}}
- </body>
- <template name="userDetails">
- {{#with user}}
- <h2>Total: <span>{{total}}</span></h2>
- <h2>Goal: <span>{{goal}}</span></h2>
- <h3>Enter Amount:</h3>
- <input type="text" id="amount"/>
- <input type="submit" id="addAmount" value="Add Protein"/>
- {{/with}}
- </template>
- <template name="userHistory">
- <h2>Last five entries: </h2>
- {{#each historyItem}}
- <p>{{date}} - {{value}}</p>
- {{/each}}
- </template>
Add Comment
Please, Sign In to add comment