Only merge the properties of locals into the template params.
Rather than performing a full merge. This solves compatibility with Sequelize models. Left the old method commented out for posterity.
Rather than performing a full merge. This solves compatibility with Sequelize models. Left the old method commented out for posterity.