           tag.html content
           callback error
 
+loggingErrors = (emitter) ->
+  emitter.on 'error', console.error
+  emitter
+
 gulp.task 'html', ->
   ect = require 'gulp-ect'
   htmlFileToDirectory = require 'gulp-html-file-to-directory'

      fileExt = path.extname file.path
      if fileExt is options?.from or not options?.from?
        transformation file, (error, result) ->
          # TODO: Gulp has a nice util for logging.
          console.log error.toString() if error?

          if options?.to?
            file.path = file.path.slice(0, file.path.lastIndexOf fileExt) + options.to


        else
          tagsToGo = tags.length
          tags.each ->
            manipulation $(this), (error) ->
              tagsToGo -= 1
              if tagsToGo is 0
                file.contents = new Buffer $.html()
                callback error, file

compileInlineTags = ->
  CoffeeScript = require 'coffee-script'
