JavaScript template library that doesn't use eval/new Function

前端 未结 10 1219
抹茶落季
抹茶落季 2021-02-05 17:52

Google Chrome extensions using manifest_version: 2 are restricted from using eval or new Function. All of the JavaScript templating librar

10条回答
  •  一向
    一向 (楼主)
    2021-02-05 18:36

    Closure Templates is a templating library that does not use eval. Templates are compiled to JavaScript ahead of time, so that what gets included in your app is a plain .js file that should not run into CSP issues.

提交回复
热议问题