...
The theme resource handler also handles caching (both client and server side) with both an Etag header aswell as an expires header based on the settings definied in Meridix Studio. It also takes care of minification of css and javascript files so you do not need to minify them in your theme package, and all resources are Gzip compressed if the request contains the header Accept-Encoding with gzip defined (this feature can be disabled).
So if you need to include a custom image (images/custom/myimage.png) and use it from a CSS rule in e.g. base.css you can defined it as below and the theme handler will take care of the the rest.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
.informationDivÂ
{
background-image: url('Theme.ashx?images/custom/myimage.png');
} |
Package structure
The theme package (zip file or folder) should be structured as below:
...