Reputation: 28770
How do I reference a .sass file from a .haml file?
I have the following haml expression that will reference a .css file:
%link{'href' => '/stylesheets/layout.css?cache=1', 'rel' => 'stylesheet', 'type' => 'text/css'}/
How do I reference a .sass file?
Upvotes: 0
Views: 1050
Reputation: 983
try using the stylesheet_link_tag method
stylesheet_link_tag "layout"
Upvotes: 0
Reputation: 5964
Sass files compile to CSS files. If you're using Rails, this is done automatically; otherwise, you can use the sass
command-line executable. Check out the Sass documentation for more information.
Once you've compiled your Sass files to CSS, you reference the CSS file just like you normally do.
Upvotes: 5