this looks like a perfect function to put in its own file, then require it in:
```
module.exports = {
  extend: function(nunjucksEnv) {
    nunjucksEnv.addFilter("instantiate", function(input) {
      var template = new nunjucks.Template(input);
      return template.render(this.getVariables());
    });
  }
}
```
and then requiring it in by using something like
```
require("./lib/extendnunjucks").extend(nunjucksEnv);
```
This gives us the option to look at the other projects and see which other extensions and filters we use, and gather them into a single module, which we can then spin off as a github-hosted node module that we can user everywhere by adding it to the pacakge.json dependency list.