Reputation: 3870
Is there a way to use variables from my Ruby application inside a Sass file?
Upvotes: 27
Views: 11492
Reputation: 3869
You can add .erb extention to your .sass file and then add your variables just like in regular .erb file:
<%= APP_CONFIG[:yourkey] %>
More information:
Upvotes: 33