alik
alik

Reputation: 3870

How can I use Ruby/Rails variables inside Sass?

Is there a way to use variables from my Ruby application inside a Sass file?

Upvotes: 27

Views: 11492

Answers (1)

Laurynas
Laurynas

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

Related Questions