How to get an access to SASS variables in Slim, HAML etc.? -



How to get an access to SASS variables in Slim, HAML etc.? -

how access sass variables & mixins stored in assets directory of project straight html-preprocessors (slim, haml)?

i mean how create work things this:

// ruby slim style sass: @import 'lib/vars' body background: $color

producing:

class="lang-html prettyprint-override"><style type="text/css"> body { background: #fff } </style>

whereas $color defined somewhere in lib/_vars.sass , equals #fff.

why need it? well, need page-specific styles , elements , not want store them in global styles.

it doesn't work me in middleman+slim+sass+compass environment. ruby says:

error: file import not found or unreadable: lib/vars.

i wish there improve reply but, unfortunately, not possible.

sass haml slim-lang middleman

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -