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
1.4m articles
1.4m replys
5 comments
57.0k users