I have a simple fixture.yml file:
label:     body: "<%= variable %>" The issue is that the ERB code is parsed as part of loading the fixture, whereas I actually want the body to be literally "<%= variable %>" (un-interpolated).
How do I escape the ERB tag?
Add a second % to the opening tag:
label:     body: "<%%= variable %>" The <%% sequence is valid ERB, rendered as a literal <%.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With