but how do you call the variable as argument for the function? On Jun 3, 5:19 pm, Nathan Weizenbaum <[email protected]> wrote: > You have to make a custom function. > Seehttp://sass-lang.com/docs/yardoc/file.FAQ.html#q-ruby-codefor details. > > > > On Thu, Jun 3, 2010 at 1:56 AM, Eumir <[email protected]> wrote: > > is there a way to access ruby variables in sass or do i have to make a > > custom function for it? > > > what im trying to do is to generate a stylesheet for each user so in > > the controller, i do something like: > > > def show > > respond_to do |format| > > format.css{render :partial => "styles"} > > end > > end > > > then in the view name _styles.haml i do this: > > > :sass > > #header > > :background url(user.banner.url) > > > is this possible at all? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Haml" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected] <haml%[email protected]>. > > For more options, visit this group at > >http://groups.google.com/group/haml?hl=en.
-- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/haml?hl=en.
