$compiler
$compiler : \Spork\CSS\AbstractCompiler
Compiler instance or service name to use
Convert Less (http://lesscss.org/) scripts into inline style sheets
$compiler : \Spork\CSS\AbstractCompiler
Compiler instance or service name to use
$resolver : \Zend\View\Resolver\ResolverInterface
Resolver instance to use
__invoke(string $template = null) : \Spork\View\Helper\CSS\AbstractHelper|string
Invoking the class will either compile a template and return the CSS or return itself if not template is specified.
string | $template | Optional template to compile |
compile(string $template) : string
Compile template
string | $template |
CSS
getCompiler() : \Spork\CSS\AbstractCompiler
Get compiler instance
On compiler not set or invalid compiler type found
setCompiler(\Spork\CSS\AbstractCompiler|string $compiler) : \Spork\View\Helper\CSS\AbstractHelper
Set compiler instance or name of service
\Spork\CSS\AbstractCompiler|string | $compiler |
getResolver() : \Zend\View\Resolver\ResolverInterface
Get resolver instance. If resolver has not been set a default resolver is created.
setResolver(\Zend\View\Resolver\ResolverInterface $resolver) : \Spork\View\Helper\CSS\AbstractHelper
Set Resolver instance
\Zend\View\Resolver\ResolverInterface | $resolver |
initializeResolver()
Initializes Resolver to find files by mimicking the default template resolver and using compiler extensions.