vojtajina/testacular — pull request #224 by refractalize (2012-12-09 21:50:56+00:00)
Title: Allow functions to be used for preprocessors

Allow functions to be used instead of strings. Better for extending testacular with new preprocessors:

var pogo = require('pogo');

preprocessors = {
'**/*.coffee': 'coffee',
'**/*.pogo': function (content, filename, done) {
done({content: pogo.compile(content, {filename: filename})});
}
};

Let me know if there's a better way to do this... Cheers.

Tim.