docs: function() {
    gulp.task('tpl-precompile', function() {
      return gulp.src([paths.src.partials])
      .pipe($.htmlmin({
        removeComments: true,
        collapseWhitespace: plugins.tpls.ext === '.jade' ? false : true
      }))
      .pipe(plugins.tpls.cmd(plugins.tpls.config))
      .on('error', handleError)
      .pipe($.defineModule('plain'))
      .pipe($.declare({
        namespace: 'R.templates',
        processName: function(file) {
          var dir = config.paths.src.partials || config.paths.src.templates;
          return file.slice(file.indexOf(dir) + dir.length).replace('.js', '');
        }
      }))
      .pipe($.concat('templates.js'))
      .pipe(gulp.dest(paths.out.js));
    });
  
    /* Template livereloading  */
    gulp.task('tpl-reload', ['tpl-precompile'], function() {
      return gulp.src([paths.src.views])
      .pipe($.livereload(lrport));
    });
  }