Google Chrome extensions using manifest_version: 2 are restricted from using eval or new Function. All of the JavaScript templating librar
manifest_version: 2
eval
new Function
The best solution to this problem is to pre-compile your templates before you deploy your extension. Both handlebarsjs and eco offer pre-compilation as a feature. I actually wrote a blog post that goes into more depth.