-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow compile() from outside the plugin #190
Conversation
Cleaned up the class-wp-scss.php file primarily to allow for multiple instances of the Wp_Scss class without conflict with internal variables. Removed almost all global variable references to create a more class based/object oriented structure, including removing direct calls to public class variables and replacing with function calls to retrieve private variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really good work on this. Thank you for the clean-up as well as the added functionality. I added some minor code styling requests (I think these may have been around before your changes but I'm only seeing them now).
class/class-wp-scss.php
Outdated
$this->scss_dir = $scss_dir; | ||
$this->css_dir = $css_dir; | ||
$this->compile_method = $compile_method; | ||
$this->compile_errors = array(); | ||
$scssc = new Compiler(); | ||
$this->scssc = new Compiler(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please match the indent of the =
sign with the line above for better code readablity.
Co-authored-by: Skylar Bolton <skylar.bolton@gmail.com>
Co-authored-by: Skylar Bolton <skylar.bolton@gmail.com>
Co-authored-by: Skylar Bolton <skylar.bolton@gmail.com>
Co-authored-by: Skylar Bolton <skylar.bolton@gmail.com>
Thanks, some of them may well have been me, either way I've committed those changes. |
Resolves #182 |
Cleaned up the class-wp-scss.php file primarily to allow for multiple instances of the Wp_Scss class without conflict with internal variables.
Removed almost all global variable references to create a more class based/object oriented structure, including removing direct calls to public class variables and replacing with function calls to retrieve private variables.