Skip to content

Switching out callbacks with promises in Mongoose

Working with promises and mongoose just became a whole lot easier with the 4.1 release, which added the ability to specify alternative promise libraries. Prior to that, promise support was limited to the mpromise way of using promises. For some folks, including myself, this meant there wasn’t a friendly .catch method available to the promise

Read more

Swig for Designers

What’s Swig? Swig is a node.js templating engine that includes things like layouts, partials, logic tags and filters out of the box. Simple ingredients to make designing for the web a pleasant experience. Why use Swig over something like handlebars? Well, when I was rebuilding my site in metalsmith with metalsmith-templates, I needed some logic to live in my

Read more