nodeca/mincer — pull request #43 by panta (2012-11-21 14:38:45+00:00)
Title: More generic helpers support (needed for example for some Stylus helpers)

Hi,
I've added a slightly more generic mechanism for helpers, which allows to distinguish between different kinds of helpers. This is needed for example for Stylus, where helpers need the context in effect when stylus invoked the helper (and not the mincer Context instance, which would be the default).
The mechanism is backward compatible, the API for helper registration is the same, only adding an _optional_ parameter `options`, where it's possible to specify a `kind` field.
For example, I needed this to integrate naltatis/node-sprite sprite stylus helper with minces.