var ejs = require('ejs')
  , through = require('through')

module.exports = function(file, options) {
  if (!/\.js\.ejs$/.test(file)) return through()

  options = options || {}

  var buffer = ""

  return through(function write(chunk) {
    buffer += chunk
  }, function end() {
    this.queue(ejs.render(buffer, options));
    this.queue(null);
  })
}

@@ -91,16 +91,25 @@
  options
+, filters
 ) %7B%0A  if
@@ -179,16 +179,170 @@
 ns %7C%7C %7B%7D
+%0A  filters = filters %7C%7C %7B%7D%0A  %0A  for(var index in filters) %7B %0A    if (filters.hasOwnProperty(index)) %7B%0A      ejs.filters%5Bindex%5D = filters%5Bindex%5D;%0A    %7D%0A  %7D
 %0A%0A  var 

Update index.js