Permalink
Fetching contributors…
Cannot retrieve contributors at this time
108 lines (52 sloc) 2.23 KB

csscrush_file()

Process CSS file and return the compiled file URL.

csscrush_file( string $file [, array $options ] )


csscrush_tag()

Process CSS file and return an html link tag with populated href.

csscrush_tag( string $file [, array $options [, array $tag_attributes ]] )


csscrush_inline()

Process CSS file and return CSS as text wrapped in html style tags.

csscrush_inline( string $file [, array $options [, array $tag_attributes ]] )


csscrush_string()

Compile a raw string of CSS string and return it.

csscrush_string( string $string [, array $options ] )


csscrush_add_function()

Add custom CSS functions.

Custom functions added this way are stored on a stack and used by any subsequent compilations within the duration of the script.

csscrush_add_function( string $function_name, callable $callback = null )

Parameters

  • $function_name Name of CSS function, or null to clear all functions added with csscrush_add_function().
  • $callback CSS function callback, or null to remove function named $function_name.

callback ( array $arguments, stdClass $context )


csscrush_version()

Get the library version.

csscrush_version( [bool $use_git = false] )

Parameters

  • $use_git Return version as reported by shell command git describe.

csscrush_get()

Retrieve a config setting or option default.

csscrush_get( string $object_name, string $property )

Parameters

  • $object_name Name of object you want to inspect: 'config' or 'options'.
  • $property

csscrush_set()

Set a config setting or option default.

csscrush_set( string $object_name, mixed $settings )

Parameters

  • $object_name Name of object you want to modify: 'config' or 'options'.
  • $settings Associative array of keys and values to set, or callable which argument is the object specified in $object_name.

csscrush_stat()

Get compilation stats from the most recent compiled file.

csscrush_stat()