Automatically compile LESS CSS files
GHengeveld |
|
---|---|
This plugin is based on lessphp, a compiler for LESS written in PHP. LESS extends CSS with variables, mixins, operations and nesting.
What it does: Tags= Installation:
|
|
Відредаговано: Koradhil (12.09.2011 14:47, 13 років тому) |
MIHDev |
|
---|---|
Great stuff Koradhil, I will definately be looking at this tonight, not heard of LESS before but this looks fantastic for extensibility.
Cheers [b]Know the question and you will be far more likely to get an answer.[/b]
|
GHengeveld |
|
---|---|
I've added caching (memcache or db cache, depending on what's available), for the listing of .less files in version 1.1. Caching requires Siena but it will fallback if it's not available. Cache expiry time can be configured.
LESS CSS compiler v1.1 Without caching, the plugin will run a search for .less files in theme directory on every page load. |
aiwass |
|
---|---|
Uploaded it and did all the requirements and went to Plugins in the Admin panel and this is what is shown :
lessc Warning: No tags found in ./plugins/lessc/lessc.setup.php So, I can't install it via the Admin Panel > Plugins I'm running the 0.6.12 Take all that money that we spend on weapons and defences each year and instead spend it feeding and clothing and educating the poor of the world, which it would many times over, not one human being excluded, and we could explore space, together, both inner and outer, forever, in peace. - Bill Hicks
https://evlear.com |
pieter |
|
---|---|
Have you changed the following?
Note: This plugin is written for Siena. In order for it to work in Genoa (0.6) and before, you have to modify lessc.php to change /themes to /skins. ... can we help you ...
|
aiwass |
|
---|---|
Yes, I have changed the /themes to /skins
Take all that money that we spend on weapons and defences each year and instead spend it feeding and clothing and educating the poor of the world, which it would many times over, not one human being excluded, and we could explore space, together, both inner and outer, forever, in peace. - Bill Hicks
https://evlear.com |
GHengeveld |
|
---|---|
In lessc.php, right below 'Hooks=header.first', add this:
Tags=The plugin doesn't use any tags. In Siena it's not required, in Genoa it has to be set, even if empty. I've updated the description to incorporate this change. Also note that updating to v1.1 with Genoa is useless, because it only adds Siena-specific functionality. |
|
Відредаговано: Koradhil (09.12.2010 21:40, 13 років тому) |
aiwass |
|
---|---|
# Koradhil : In lessc.php, right below 'Hooks=header.first', add this: Did that, but still the same issue: Warning: No tags found in ./plugins/lessc/lessc.setup.php Even if I add tags= to lessc.setup.php as well, it's still the same issue as above. Take all that money that we spend on weapons and defences each year and instead spend it feeding and clothing and educating the poor of the world, which it would many times over, not one human being excluded, and we could explore space, together, both inner and outer, forever, in peace. - Bill Hicks
https://evlear.com |
GHengeveld |
|
---|---|
Try this:
[BEGIN_SED_EXTPLUGIN] Code=lessc Part=main File=lessc Hooks=header.first Tags= Order=10 [END_SED_EXTPLUGIN]Note the block tags. In Siena there are no more references to Seditio, so SED is replaced by COT. Same goes for the setup file, where in Genoa you have: [BEGIN_SED_EXTPLUGIN] ... [END_SED_EXTPLUGIN] [BEGIN_SED_EXTPLUGIN_CONFIG] ... [END_SED_EXTPLUGIN_CONFIG]In Siena this is: [BEGIN_COT_EXT] ... [END_COT_EXT] [BEGIN_COT_EXT_CONFIG] ... [END_COT_EXT_CONFIG] |