jetpack_sass_css_preprocess

The Jetpack by WordPress.com jetpack sass css preprocess function.

Description

jetpack_sass_css_preprocess( $sass ); 

Parameters (1)

0. $sass
The sass.

Usage

  1. if ( !function_exists( 'jetpack_sass_css_preprocess' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/custom-css/custom-css/preprocessors.php'; 
  3.  
  4. // The sass. 
  5. $sass = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_sass_css_preprocess($sass); 
  9.  

Defined (1)

The function is defined in the following location(s).

/modules/custom-css/custom-css/preprocessors.php  
  1. function jetpack_sass_css_preprocess( $sass ) { 
  2. require_once( dirname( __FILE__ ) . '/preprocessors/scss.inc.php' ); 
  3.  
  4. $compiler = new scssc(); 
  5.  
  6. try { 
  7. return $compiler->compile( $sass ); 
  8. } catch ( Exception $e ) { 
  9. return $sass;