$arguments
$arguments : array
Option arguments to be passed to compiler
Wrapper class for Stylus CSS preprocessor (http://learnboost.github.io/stylus/)
Looks for stylus executable on system path. You can specify a full path for the compiler.
If the class is created as a Service Manager factory it will look for configuration options under 'css-stylus'.
$arguments : array
Option arguments to be passed to compiler
$cache : \Zend\Cache\Storage\Adapter\AbstractAdapter
$includes : array
List of inlude paths for compiler to use
compile(string $source, string|null $destination = null, array|string|null $include = null) : string
Compile to file. If destination is not specified return CSS.
string | $source | |
string|null | $destination | |
array|string|null | $include | Include path(s) to use |
on compilation error
Compiled CSS
getArguments() : array
Get compiler arguments
setArguments(array $arguments)
Set compiler arguments
array | $arguments |
getCache() : \Zend\Cache\Storage\Adapter\AbstractAdapter
Get cache
setCache(string|array|\Zend\Cache\Storage\Adapter\AbstractAdapter $cache)
Set cache for CSS Preprocessor
Cache parameter can be an instance of \Zend\Cache\Storage\Adapter\AbstractAdapter, the name of a cache adapter class or an array of options to be passed to AbstractAdapter::factory()
string|array|\Zend\Cache\Storage\Adapter\AbstractAdapter | $cache |
on invalid cache
getCompiler() : string
Get compiler path
setCompiler(string $compiler)
Set compiler path
string | $compiler | Compiler Path |
getCompress() : boolean
Get compress flag
setCompress(boolean $flag)
Set compress flag
boolean | $flag |
getExtensions() : string
Get source file extension
setExtensions(array $extensions)
Set source file extensions
array | $extensions |
getIncludes() : string|boolean|NULL
Get compiler include path
setIncludes(array $includes)
Set compiler include path
If set to true the source path is used.
array | $includes |
createService(\Zend\ServiceManager\ServiceLocatorInterface $services) : \Spork\Style\AbstractStyle
Create Service
\Zend\ServiceManager\ServiceLocatorInterface | $services |
configure(array $options)
configure
array | $options |
getOptions(\Zend\ServiceManager\ServiceLocatorInterface $services, string $key) : array
Get options from application configuration
\Zend\ServiceManager\ServiceLocatorInterface | $services | |
string | $key |