Question
As for the content of the views, display the values within the objects below. Each of the below objects should exist within an array named
As for the content of the views, display the values within the objects below. Each of the below objects should exist within an array named storyLine in a file named models/storyLine.js. The beginning.hbs file should display the information from the below object: { storyPart: "beginning", name: "Rupert", animal: "fox", age: 8 } When showing the above data, beginning.hbs should read "Once upon a time, there was a fox named Rupert. He was only 8 years old, but he loved to travel." Use handlebars {{}} to display the data. The middle.hbs file should display the information from the below object: { storyPart: "middle", place: "France", travelVehicle: "train", yearsToStay: 2 } When showing the above data, middle.hbs should read "One day, Rupert decided to visit France. So, he hopped on a train to get there. Once he got there, he decided to stay for at least 2 years." Use handlebars {{}} to display the data. The end.hbs file should display the information from the below object: { storyPart: "end", foxWife: "Amelie", housing: "a house next to the Eiffel Tower" } When showing the above data, end.hbs should read "After a while, Rupert met a beautiful fox named Amelie. They fell deeply in love and lived in a house next to the Eiffel Tower. They lived there happily ever after. The end." Use handlebars {{}} to display the data. Step 4 Each of the Handlebar views should include an HTML tag that links to the other pages so when you visit /beginning page, there should be a hyperlink which is pointing at /middle. Additionally, there should be a hyperlink on the /middle page which points to the /end page.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started