Is it possible to pass a YAML boolean into HAML? I’ve attempted a couple ways, but can’t seem to get it to understand, short of just matching the text.
Here’s the YAML boolean:
---
show_banner: true
---
I’ve tried explicitly matching the boolean and also loosely matching it in HAML.
- if "#{page.show_banner}" == true
- if "#{page.show_banner}"
What context is this HAML in? How are you passing in parameters?
Without knowing more, I assume you could do this:
Your use of quotation marks is changing the parameter to a string.