Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

define empty string variable #181

Open
vol4ok opened this issue Dec 15, 2011 · 3 comments
Open

define empty string variable #181

vol4ok opened this issue Dec 15, 2011 · 3 comments

Comments

@vol4ok
Copy link

vol4ok commented Dec 15, 2011

I want to define a variable, which could be empty in some cases
@prefix: "";
and to use it like this
src: url("@{prefix}/path/to/something");
the problem is that it compiles into
src: url("""/path/to/something");

How to define an empty string variable, that can be compiled in
src: url("/path/to/something");

@MarianaSilva
Copy link

I have the same issue!
Try to use @Prefix: " ";

@joeldrapper
Copy link

@prefix: "";
header {
    background: url('@{prefix}logo.png');
}

Works great for me. If that doesn't work you could change it to this which sets it to be empty with javascript.

@prefix: ~'';

@gacekssj4
Copy link

I use:
@prefix: ;

and its empty :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants