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

Undefined method SassIfNode::render() #69

Open thgie opened 11 years ago

thgie commented 11 years ago

Got this error message:

Call to undefined method SassIfNode::render() in /Users/adrian/treehouse/a_code/a_webdevelopment/mapping.io/app/vendor/PHPSass/tree/SassMediaNode.php on line 82

Here is the code surrounding:

$app->get('/assets/css/style.min.css', function() use ($app){
    $scss = file_get_contents('../precompiles/sass/mapping.io.scss');
    $options = array(
        'style' => 'nested',
        'cache' => FALSE,
        'syntax' => 'scss',
        'debug' => TRUE,
        'callbacks' => array(
            'warn' => 'cb_warn',
            'debug' => 'cb_debug',
        ),
    );

    // Execute the compiler.
    $parser = new \SassParser($options);
    echo $parser->toCss('../precompiles/sass/mapping.io.scss');
});
jmverges commented 11 years ago

could I see your scss?

thgie commented 11 years ago

It's not much selfcoded but I import inuit.css. The scss code is here:

https://github.com/ichbinadrian/mapping.io/tree/master/precompiles/sass

mapping.io.scss is the starting point.

eroepken commented 11 years ago

I'm also getting this error when trying to process Foundation 4 scss files. (https://github.com/zurb/foundation/tree/master/scss)

kaoz70 commented 10 years ago

Yep, and me too, parsing Foundation 4's "foundation/scss/foundation/components/_buttons.scss" file, any update on this?