       return { extension: 'js' }
 
     after_category = (ctx, category) ->
-      if @category != category then return
-
       tasks = []
 
       # for each category in templates

        ctx.content = ""

    after_hook = (ctx) ->
      if @category != ctx.category then return

      # last valid adapter is assumed to be your precompile target
      adapter = _.find(_.clone(ctx.adapters).reverse(), (a) -> a.name)


      @write = if @concat then !@extract else true

    fs: ->
      extract: @extract
      ordered: false
      detect: (f) => minimatch(f.relative, @pattern)
