Node.js Tutorial for Beginners (Part 3): Transferring Data Between Pages
See the original posting on DZone Python
In the previous article in this Node.js for beginners series, we went over the three popular templating engines for working with Node/Express-based applications: Pug, Mustache, and EJS. After choosing EJS, we set about creating the basic HTML make-up of the application. It wasn’t anything super fancy, but we created two web pages that rendered basic HTML. In this post, we’ll examine how to connect these two EJS pages and transfer data between them.
I’ll be basing the app I work on in this series of a project from a Udemy course (found here) that I’ve been using on-and-off for a while. I love to travel, and the US National Parks are some of my favorite places to go. To teach myself Node.js, Express.js, templating engines, and Bootrap, I’m going to design an application to keep track of my park travels. In this edition of the series, we’ll learn how to transfer data between to EJS pages, allowing us to add our park pictures and names to our app.