javascript - Underscore.js _.template causes error from Chrome extension -


if use underscore.js's _.template() inside google chrome extension following error in console:

uncaught error: code generation strings disallowed context

is there way past error?

unfortunately don't think can use underscore.js's _.template() within chrome extension...at least new manifest.json version 2. same holds true trying use jquery template plugin.

from google chrome extension's content security policy page:

there no mechanism relaxing restriction against executing inline javascript. in particular, setting script policy includes unsafe-inline have no effect. intentional.

i going @ other templating engines not use new function object.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -