Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Getting Started with Meteor.js JavaScript Framework - Second Edition
  • Table Of Contents Toc
  • Feedback & Rating feedback
Getting Started with Meteor.js JavaScript Framework - Second Edition

Getting Started with Meteor.js JavaScript Framework - Second Edition

By : Isaac Strack
4.2 (5)
close
close
Getting Started with Meteor.js JavaScript Framework - Second Edition

Getting Started with Meteor.js JavaScript Framework - Second Edition

4.2 (5)
By: Isaac Strack

Overview of this book

This book is for developers or students who have a working knowledge of JavaScript and HTML, and want to learn how to quickly develop full-stack web applications using pure JavaScript.
Table of Contents (14 chapters)
close
close

A new HTML template


We've already created our categories through the use of the categories template. Now, we want to take this to the next level and display the actual items that we may want to let people (except STEVE!) borrow so that when we click on a category, we get a list of items.

Let's use that terminology. We need a place to display a list. So, let's modify our LendLib.html file at~/Documents/Meteor/LendLib/ just a bit at the top:

<body>
  <div id="lendlib" class="container">
    <div id="categories-container" class="container">
      {{> categories}}
    </div>
    <div id="list">
      {{> list}}
    </div>
  </div>
</body>

We did two things by adding this code:

  1. We wrapped the div element with id="categories-container" inside the div element called lendlib, and we moved class="container" to the new div element. This is for stylistic purposes so that our list will more or less line up with the categories template.

  2. We added a div...

Limited Time Offer

$10p/m for 3 months

Get online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech and supported with AI assistants
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon

Create a Note

Modal Close icon
You need to login to use this feature.

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note