-
Notifications
You must be signed in to change notification settings - Fork 81
Media Processors
Media processors are defined in the following format:
{
folder:{
file_extension_with_dot:(
processor_module_name1, processor_module_name2)
}
}
The processors are executed in the order in which they are defined. The output from the first processor becomes the input for the next. A *
instead of folder will apply the setting to all folders. There is no wildcard support for folder name yet, *
is just a catch all special case.
File extensions should be specified as .css, .js, .png etc. Again no wildcard support yet.
Hyde retains the YUI Compressor, Clever CSS and HSS processors from aym-cms.
Template processor allows the use of context variables inside your media files.
Runs through the all the files defined in the configuration associated with ‘hydeengine.media_processors.YUICompressor’ and compresses them.
In the settings file, set YUI_COMPRESSOR to be a path to a YUI Compressor jar on your computer.
Runs through the all the files defined in the configuration associated with ‘hydeengine.media_processors.CleverCSS’ and converts them to css.
You need to install Clever CSS using sudo easy_install CleverCSS command for this processor to work.
Runs through the all the files defined in the configuration associated with ‘hydeengine.media_processors.HSS’ and converts them to css.
You need to download HSS from the project website and set the HSS_PATH variable to the downloaded path. A version for OS X is installed in the lib folder by default. To use it, just uncomment the HSS_PATH line in the settings.py file of your template.