I'm using a PHP port of MTHAML which uses the exact same syntax. How can I tell MTHAML to not touch my variables when I use them inside
https://github.com/arnaud-lb/MtHaml
For instance this
:javascript
if (#{$response)} !== "") {
show_error("#{$response}");
}
Gets converted to this
<script type="text/javascript">
//<![CDATA[
if (<?php echo htmlspecialchars(escape("$response"),ENT_QUOTES,'UTF-8'); ?> !== "") {
show_error("<?php echo htmlspecialchars($response,ENT_QUOTES,'UTF-8'); ?>");
}
//]]>
</script>
So my PHP boolean variables show up as blank in the rendered javascript, or if my php variable is a string with quotes, the quotes end up being converted to ".