richthegeek / phpsass

A compiler for SASS/SCSS written in PHP, brought up to date (approx 3.2) from a fork of PHamlP: http://code.google.com/p/phamlp/
http://phpsass.com/
382 stars 83 forks source link

scss syntax passed through mixin @content is not being parsed #86

Closed arkonan closed 11 years ago

arkonan commented 11 years ago

For the following example scss:

$fiver: 500px;
@mixin test-mixin {
    @content;
}
@include test-mixin {
    #logo { width: $fiver; }
}

PHPSass produces the output:

#logo {
  width:  $fiver; }

Whereas http://sass-lang.com/try.html returns

#logo {
  width: 500px; }

As far as I can tell the issue is that SassContentNode::parse() returns $context->getContent() without parsing any nodes which might be inside.