Skip to content

Instantly share code, notes, and snippets.

@jamesallardice
Created March 5, 2015 21:08
Show Gist options
  • Save jamesallardice/b1e9c7d8af9b10a5523e to your computer and use it in GitHub Desktop.
Save jamesallardice/b1e9c7d8af9b10a5523e to your computer and use it in GitHub Desktop.

Given an ES6 file, demo.es6 that contains template strings:

let x = 'x';
console.log(`x is ${ x }`);

The following code within a generator method throws a reference error (x is not defined):

this.template('demo.es6', 'result.es6');

The reference error can be resolved by configuring Lodash within the generator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment