title: Why am I getting this error? dest.on is not a function - using gulp-file-include
body: <p>I am getting an Error of <code>TypeError: dest.on is not a function</code>. When running this task, I can't figure out what could be wrong.</p>
  <pre><code>var fileinclude = require('gulp-file-include');
  var rename = require('gulp-rename');
  
  var paths = {
    templates : './templates/'
  }
  
  //file include: grab partials from templates and render out html files
  
  gulp.task('fileinclude', function() {
  
  return gulp.src(paths.templates + '*.tpl.html')
   .pipe(fileinclude)
   .pipe(rename({
    extname: &quot;&quot;
   }))
  .pipe(rename({
    extname: &quot;.html&quot;
   }))
  .pipe(gulp.dest('./'));
  });
  </code></pre>