Blog

Archive for the Node.js Category


URL Parameters in Express.js
Posted on August 22, 2016 in Node.js by Matt Jennings

Example of a URL parameter that uses Express.js

Website Output if you go to example.com/polls/1234

1234


Passing An Array of Objects to a View Using Express Handlebars and Control Structures in the View
Posted on August 6, 2016 in Node.js by Matt Jennings

/server.js File Example

/views/layouts/base.handlebars File Example

/views/home.handlebars File Example


Minimum JS Required to Get Express Handlebars Running for Node.js
Posted on August 6, 2016 in Node.js by Matt Jennings

Steps

Install the following modules, using the commands below and pressing Enter after each one:

Create a server.js file inside your root
Read more…


Using express and express-handlebars Modules to Object Properties to a Handlebar Template
Posted on June 20, 2016 in Node.js by Matt Jennings

/server.js Example Code

/views/tester.handlebars Example Code


Basic Node.js Code for the express-handlebars Module
Posted on June 20, 2016 in Node.js by Matt Jennings

Steps:

To install the express-handlebars module, in your shell navigate to your root directory and type in the three
Read more…

To Top ↑