Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为<% name %>带有 EJS 的 Backbone.js 模板生成输出。我可以用
<% name %>
<%- "<%= name %>" %>
解决它,但我认为它会带来一些麻烦。
EJS 无法转义打开和关闭标签。您可以指定另一个打开和关闭标签,例如不与另一个文档内容混淆的{{标签。}}
{{
}}