Keeping it DRY. Same constant needed in js, sass, and rails

I need a constant, X, to be known in a
jQuery script
In an .rb file in Rails
ins some css/SASS

How can I get this constant known in all three places?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs