Chapter 1. A better way to build apps
Listing 1.1. helloWorld template
Chapter 2. My fridge! A reactive game
Listing 2.1. General layout styles
Listing 2.2. Skeleton template structure
Listing 2.3. Looping through products in the productsList template with the each helper
Listing 2.4. Template for each productListItem
Listing 2.5. Looping through each product inside the fridge template
Listing 2.6. Declaring a products collection on the client and server
Listing 2.7. Setting up a products helper for the fridge template
Listing 2.8. Setting up a products helper for the productList template
Listing 2.9. Adding a defined dataset to the database upon server start
Listing 2.10. Loading jQuery-UI from a CDN
Listing 2.11. Declaring fridge as a droppable target and updating the product location
Listing 2.12. Declaring productList as a droppable target
Listing 2.13. Declaring productListItem as a draggable item
Chapter 3. Working with templates
Listing 3.1. Rendered HTML from template
Listing 3.2. Double-braced template tags
Listing 3.3. JavaScript code for a helper called name
Listing 3.4. Full profile page template
Listing 3.5. Splitting the profile page template
Listing 3.6. Inserting subtemplates dynamically with helpers
Listing 3.7. Using an if block
Listing 3.8. Using an unless block
Listing 3.9. Using else in an if block
Listing 3.10. Using the #each tag
Listing 3.11. Using the #with tag
Listing 3.12. A profile template using different local helpers