You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any documentation for this? I've tried countless times to use the PHP filter provided yet HAML still returns "Filter "php" is not defined." even though I have both gems installed.
The text was updated successfully, but these errors were encountered:
You need to require haml/filters/php as well as have haml-contrib installed. From the command line:
~ $ haml -rhaml/filters/php
:php
Foo
result:
<?php
Foo
?>
From a script just add require 'haml/filters/php' after you require 'haml'.
It’s not obvious though, so I agree we could do with some documentation. I added docs for #2 as rdoc in the code, but I’m not sure where the best place would be generally. Perhaps we need a REFERENCE like the main Haml project where the docs for each addition could be added.
Is there any documentation for this? I've tried countless times to use the PHP filter provided yet HAML still returns "Filter "php" is not defined." even though I have both gems installed.
The text was updated successfully, but these errors were encountered: