0

This is an enormous simplification of what I'm trying to do, but suppose I build an entire CSS declaration into an SCSS variable, like:

$myclass: "
  .myclass {
    display: block; }";
//Now I just want to 'echo' the string $myclass directly to the CSS

Is there any way to do that?

ChrisNY
  • 3,917
  • 4
  • 27
  • 31
  • Maybe knowing your actual use case could help users suggest better alternatives. I mean, I can't understand why you'd want to do that. You can write the CSS directly. – Harry Nov 20 '16 at 05:41
  • If you just want to see whats the value in it may be you can use @debug ..this link could be helpful http://stackoverflow.com/questions/18729192/sass-print-to-terminal – Geeky Nov 20 '16 at 05:55
  • If you just want the value to be printed out in the compiled css, I recommend simply using a `mixin` – Adetoyese Kola-Balogun Nov 20 '16 at 12:04
  • You could output it inside of a CSS comment, but guessing that’s not what you want. http://www.sassmeister.com/gist/f7b90b3365ade24f1c26ce95956860a9 – Ted Whitehead Nov 21 '16 at 16:44

0 Answers0