How can I quote strings in SASS?
        Posted  
        
            by Stavros Korokithakis
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Stavros Korokithakis
        
        
        
        Published on 2009-09-09T18:17:53Z
        Indexed on 
            2010/03/23
            5:43 UTC
        
        
        Read the original article
        Hit count: 532
        
I'm using SASS to generate a @font-face mixin, however this:
=remotefont(!name, !url)
  @font-face
    font-family = !name
    src = url(!url + ".eot")
    src = local(!name), url(!url + ".ttf") format("truetype")
+remotefont("My font", "/myfont.ttf")
becomes this:
@font-face {
  font-family: My font;
  src: url(/myfont.ttf.eot);
  src: local(My font), url(/myfont.ttf.ttf) format(truetype); }
No matter how much I try, I can't have it quote either "My font" (with "!name") or "truetype" (it removes the quotes). Any ideas on how I can do this?
© Stack Overflow or respective owner