visionmedia/consolidate.js — pull request #71 by ForbesLindesay (2012-10-23 16:03:27+00:00)
Title: Throw errors syncronously for uninstalled modules

By listing the module(s) required for each template engine we can throw synchronously. Previously we were throwing asynchronously and this made the exception impossible to catch. This alternative system would make it really simple to build a tool that installs templates on-demand. I came across the problem when attempting to add that feature to nodefront.

I should note that I created the problem when I added the option to directly render a string, which although a useful feature, has created its own problems.