gsf/whiskers.js — pull request #9 by derdesign (2012-01-28 02:02:50+00:00)
Title: Ability to use functions as partials

This commit allows Whiskers to accept both functions and whiskers templates (strings) to use as partials.

The functions will have access to the `locals` object passed by the engine, which they can use to render their own template code. This allows Whiskers to integrate seamlessly with other template engines.

I have adjusted the tests to reflect this change.

All the best,
Ernie.-