How can I write something like this to include in a template, but in Haml?
<script> $(document).ready( function() { $('body').addClass( 'test' ); } ); </script>
:javascript $(document).ready( function() { $('body').addClass( 'test' ); } );
Docs: http://haml.info/docs/yardoc/file.REFERENCE.html#javascript-filter
2.1m questions
2.1m answers
60 comments
57.0k users