Blog


Vim Text Editor Common Commands
Posted on January 23, 2017 in Linux, Vim by Matt Jennings

gg
Jump to first line of document.
G
Jump to last line of document.
0
Jump to first character of current line.
$
Jump to last character …

Read more


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

// Route for each poll
// and “:poll_id” is a URL parameter where a value passed the to URL,
// like …

Read more


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

// Module that deals with routing and
// “require” loads an additional library
var express = require(‘express’);

// Express handlebars module
var exphbs = …

Read more


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

Install the following modules, using the commands below and pressing Enter after each one:
npm install express –save
npm install express-handlebars –save
npm …

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

app.get(‘/tester’, function(req, res) {
// Below I’m passing in a JSON object (or hash table of keys …

Read more