} return sprintf('%s -I%s -', SACY_TRANSFORMER_LESS, escapeshellarg(dirname($filename))); } } class ProcessorJSX extends ExternalProcessor { protected function getCommandLine($filename, $opts = array()) { if (!is_executable(SACY_TRANSFORMER_JSX)) { throw new Exception('SACY_TRANSFORMER_JSX defined but not executable'); } return SACY_TRANSFORMER_JSX; } } if (defined('SACY_COMPRESSOR_UGLIFY')) { ExternalProcessorRegistry::registerCompressor('text/javascript', 'sacy\\ProcessorUglify'); } if (defined('SACY_TRANSFORMER_COFFEE')) { ExternalProcessorRegistry::registerTransformer('text/coffeescript', 'sacy\\ProcessorCoffee'); } if (defined('SACY_TRANSFORMER_ECO')) { ExternalProcessorRegistry::registerTransformer('text/x-eco', 'sacy\\ProcessorEco'); } if (defined('SACY_TRANSFORMER_SASS')) { ExternalProcessorRegistry::registerTransformer('text/x-sass', 'sacy\\ProcessorSass'); ExternalProcessorRegistry::registerTransformer('text/x-scss', 'sacy\\ProcessorScss'); } if (defined('SACY_TRANSFORMER_LESS')) { ExternalProcessorRegistry::registerTransformer('text/x-less', 'sacy\\ProcessorLess'); } if (defined('SACY_TRANSFORMER_JSX')) {