publicclass/express-partials — pull request #3 by shimaore (2012-06-25 12:04:05+00:00)
Title: Make `register` more flexible

I didn't figure out we could have `register` use different types of arguments until I tried to use it for real. :(

This makes `register` incrementally a little bit more clever about its second argument. It now accepts a render function (same as previously), a template module (or some object with a `render` member), or a template module name.

Updated tests are provided.