Skip navigation

Using data with views

Using data with views: Building a Website with Node.js and Express.js
Using data with views: Building a Website with Node.js and Express.js

In a real application you need to be able to pass data to your templates. You can use the render method to pass along a variable or an object from your routes to your views. You also have the option of setting a variable from within your applications that will behave as a local variable. Within the templates, you can use this special notation to access the variables

Resume Transcript Auto-Scroll
Skill Level Intermediate
3h 16m
Duration
251,794
Views
Show More Show Less
Skills covered in this course
Developer Web Web Development Express.js Node.js

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of Lynda.com courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month