Skip to content
Open
Show file tree
Hide file tree
Changes from 4 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.*"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that it will be better to set the version like this: >=0.1 because scssphp-compass doesn't receive updates often.
This way it will be possible to use scssphp-compass with newer versions of scssphp even if scssphp-compass will be completely abandoned (if it's not yet).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point :)

},
"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