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
Post a Comment