Advertisement
DonJabone

Handlebars-Exam

Jun 9th, 2014
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.04 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>Task 3 - Handlebars</title> 
  6.     <link rel="stylesheet" href="styles.css">
  7. </head>
  8. <body>
  9.     <div id="book-items-container">
  10.     </div>
  11.     <div id="book-details-container">
  12.     </div>
  13.     <script id="books-list-template" type='text/x-handlebars-template'>
  14.         <ul class="books-list">
  15.         {{#each books}}
  16.             <li class="book-item">
  17.                 <a href="#" data-id="{{id}}">
  18.                     <strong class="book-title">{{title}}</strong><span class="author">by {{author}}</span>
  19.                 </a>
  20.             </li>
  21.   {{/each}}
  22.     </script>
  23.     <script id="book-details-template" type='text/x-handlebars-template'>
  24.             <div class="book-details">
  25.             <h2 class="book-title">
  26.                 {{title}}
  27.             </h2>
  28.             <p><span class="isbn">{{isbn}}</span></p>
  29.             <p>Published on <span class="publish-date">{{publicationDate}}</span> by <strong class="author">{{author}}</strong></p>
  30.             <p class="description">{{description}}</p>
  31.         </div>
  32.     </script>
  33.     <script src="handlebars.min.js"></script>
  34.     <script src="scripts.js"></script>
  35. </body>
  36. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement