In Haml a double equals interpolates a string the same way that a single equals interpolates ruby code, although the doc itself is quite quiet about that. So this
- @student = 'derDoc'
%p= "Hello #{@student}"
produces the same result as
%p== Hello #{@student}
produces:
<p>Hello derDoc</p>
produces the same result as
<p>Hello derDoc</p>
The same (with php vars) run through phphaml however, produces this:
<?php $student = 'derDoc';?><p<?php $this->writeAttributes(array (), array($student)); ?>><?php echo "Hello #"; ?>
</p>
produces the same result as
<p<?php $this->writeAttributes(array (), array($student)); ?>><?php echo Hello #; ?>
</p>
In Haml a double equals interpolates a string the same way that a single equals interpolates ruby code, although the doc itself is quite quiet about that. So this
produces:
The same (with php vars) run through phphaml however, produces this: