{ "info": { "author": "Victor Fernandez de Alba", "author_email": "sneridagh@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Programming Language :: Python" ], "description": ".. contents::\n\nIntroduction\n============\n\nThis package allow theme developers to add LESS stylesheets into a Plone site.\n\nLESS\n====\n\nLESS extends CSS with dynamic behavior such as variables, mixins, operations and functions. LESS runs on both the client-side (Chrome, Safari, Firefox) and server-side.\n\nYou can find more information about LESS at http://lesscss.org/\n\nIntegration with Plone\n======================\n\nThis package clone the portal_css behavior, extending it to meet both client-side and server-side LESS resources compiling methods.\n\nIt adds a *portal_less* tool to the portal, enables an import/export GS profile *lessregistry.xml*, overrides the default *Products.ResourceRegistries* viewlet by adding the LESS resources part for the
tag.\n\nAdding LESS resources\n=====================\n\nThis package is intended to be used in conjunction with an user defined Plone Theme package. As a developer, you can include as many LESS resources as you may need to build your theme. You can add LESS resources using a GS profile named *lessregistry.xml*. The syntax is cloned from *cssregistry.xml* profile::\n\n \n \n\n\nControl Panel\n=============\n\nYou can manage the way the LESS resources compile by accessing the LESS resources configlet located at the site setup. By default, client-side LESS resources compile mode and minification are enabled.\n\nClient side compiling\n=====================\n\nClient-side compiling is intended to use while in (theme) development mode.\n\ncollective.lesscss will use the standard method for compiling client-side by using the *less.js* (v1.3, at the time of this writting) and exposing the LESS resources after the portal_css ones::\n\n \n \n \n\nServer side compiling\n=====================\n\nServer-side compiled LESS resources are recommended in production mode. By unsetting this option, the site will server-side compile them into CSS resources and enable a volatile cache on them. \n\nIMPORTANT NOTE: Server-side compiling requires to have declared the resources via plone.resource package in your theme package! Example::\n\n