I need to use a less variable to import google fonts into a stylesheet.
The current way I am doing it is: @import url(@{googleFonts});
The variable I am passing into LESSPHP is: "googleFonts" => "http://fonts.googleapis.com/css?family=Linden+Hill"
However, all it is compiling to is: import url(http);
The past import statement I tried was: @import url(http://fonts.googleapis.com/css?family=@{googleFonts});
With the variable of just: Linden+Hall
This worked better, but the problem I ran into here was the + was being stripped. Leaving just LindenHall
.
So if you know how to make the compiler leave the + alone, then that works just fine aswell!
Try an extra set of quote marks around your path (note the
'
):From the LESS PHP documentation, it states: