Ah. So when I first tried it without that line I was getting a "this.cache is undefined" error with the nunjucks environment.  I looked a bit and saw [this line](https://github.com/cvan/galaxy/blob/master/src/media/js/builder.js#L52) in builder.js that set the nunjucks environment cache to nunjucks.template, placed it in here, and it worked.