wycats/handlebars.js — pull request #377 by JamesMaroney (2012-11-28 15:40:35+00:00)
Title: Making AMD module output return compiled function when only one template is processed

Using Handlebars in an AMD environment, it would be helpful to return the compiled function from the AMD module.

To minimize impact on your current logic, I have only implemented this modification for when one template is being precompiled.