socketstream/socketstream — pull request #148 by mindeavor (2012-02-15 02:58:54+00:00)
Title: Allow template engines to select formatter.

On the irc channel @sveisvei needed to bypass SocketStream's default formatting behavior for `.jade` files.

This patch allows template engines to specify which formatter SocketStream should use for each template file. You can see an actual use case [here](https://github.com/sveisvei/ss-clientjade/blob/master/lib/engine.js).

This patch should be fully backwards-compatible since it only changes the selected formatter if the template engine provides a `selectFormatter` method.