Questions tagged «fixture»

1
如何在ERB中转义ERB标签
我有一个简单的fixture.yml文件: label: body: "<%= variable %>" 问题在于,ERB代码是作为加载固定装置的一部分而解析的,而我实际上希望将主体按字面意思是“ <%=变量%>”(未插值)。 如何逃脱ERB标签?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.