summaryrefslogtreecommitdiffstats
path: root/bench/templates/index.js
blob: 943f9cdfe605f877f49c862781b4fc4aa80a7943 (plain)
1
2
3
4
5
6
7
8
9
var fs = require('fs');

var templates = fs.readdirSync(__dirname);
templates.forEach(function(template) {
  if (template === 'index.js' || !(/(.*)\.js$/.test(template))) {
    return;
  }
  module.exports[RegExp.$1] = require('./' + RegExp.$1);
});