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

前端 未结 10 1216
抹茶落季
抹茶落季 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:42

    It turns out that mustachejs added new Function recently and using tag 0.4.2 doesn't have it. It the API is slightly different with Mustache.to_html instead of Mustache.render and there are likely some performance reduction.

    I opened an issue to potentially get new Function removed in a future release.

提交回复
热议问题