Book Image

Web Development with MongoDB and Node.js

By : Jason Krol
Book Image

Web Development with MongoDB and Node.js

By: Jason Krol

Overview of this book

Table of Contents (19 chapters)
Web Development with MongoDB and Node.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
12
Popular Node.js Web Frameworks
Index

Summary


In this chapter, we introduced the Handlebars template-rendering engine and reviewed the syntax used when creating dynamic HTML pages. We created a main layout for our app as well as the home page and image page views. We included partial views for the sidebar in the layout and created a global Handlebars helper to display custom formatted dates.

Even though neither of the views is currently displaying any data (because we aren't passing in a ViewModel yet), you can see that things are starting to come along nicely! In the next chapter, we will wire up the actual logic in the controllers for each page as well as build up the ViewModel so that we start seeing some actual content on our screens.