lundi 24 août 2015

Rails: Change sass variable from controller and compiles it on production mode

There is scss file contains like this

$header-size = 11;
$main-color = "blue";
header {
  font-size: $header-size;
  color: $main-color;
}
p { color: $main-color; }

I want to change variable values from rails controller and compile it to make it ready to use.

Is it possible?

Aucun commentaire:

Enregistrer un commentaire