Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ extract script if you are updating the version of Compass that is included.

<?php
require "vendor/autoload.php";

use Leafo\ScssPhp\Compiler;

$scss = new scssc();
$scss = new Compiler();
new scss_compass($scss);

echo $scss->compile('
Expand Down
4 changes: 3 additions & 1 deletion compass.inc.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<?php

use Leafo\ScssPhp\Compiler;

class scss_compass {
protected $libFunctions = array("lib_compact");

static public $true = array("keyword", "true");
static public $false = array("keyword", "false");

public function __construct($scss) {
public function __construct(Compiler $scss) {
$this->scss = $scss;
$this->updateImportPath();
$this->registerFunctions();
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Compass for scssphp",
"homepage": "http://leafo.net/scssphp/",
"require": {
"leafo/scssphp": "dev-master"
"leafo/scssphp": ">=0.1"
},
"authors": [
{
Expand Down
4 changes: 3 additions & 1 deletion test.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
require "vendor/autoload.php";
require "compass.inc.php";

$scss = new scssc();
use Leafo\ScssPhp\Compiler;

$scss = new Compiler();
new scss_compass($scss);

echo $scss->compile('
Expand Down