publicclass / express-partials

Express 3.x Layout & Partial support.
182 stars 146 forks source link

Make `register` more flexible #3

Closed shimaore closed 12 years ago

shimaore commented 12 years ago

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.

shimaore commented 12 years ago

Hmmm, github is nicely mixing stuff up. To clarify: