This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Just came across a problem with variables. I have images in my stylesheets that i need to refresh just like my js files when i do a server update. On my js files i just add a timestamp at the end in the form of a query string (..pretty old stuff) I do the same for all the css files in my site too ( src=/somepath/somefile.css?2012-01-01 ), however i noticed that Google Chrome will reload the css files and apply the new styles, but, it completely ignores the images referenced inside those same css files. ..so i thought, no problem, i'm using .LESS, just create a @timestamp variable and like this i can always have some way to refresh the images when i recompile my css file. Well, it's a no go :) Seems like WWB (or maybe it's less ..anyways) will not parse this
That code will not replace @timestamp with the appropriate variable Hope you guys can fix this soon, thanks, Robert |
|
|
I believe what you are looking for is string interpolation - here is the detail from the Less docs: String interpolation Variables can be embeded inside strings in a similar way to ruby or PHP, with the @{name} construct: @base-url: "http://assets.fnord.com"; background-image: url("@{base-url}/images/bg.png");
|
|
|
Awesome, thanks for the reply ! |
|