Skip to content

Commit

Permalink
Added option to ignore files
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyra committed Sep 10, 2011
1 parent 8add710 commit 3719d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/components/less.php
Expand Up @@ -52,7 +52,7 @@ public function beforeRender() {
if(!Cache::read('lessed') || Configure::read('debug') > 0) {
foreach($this->lessFolder->find() as $file) {
$file = new File($file);
if($file->ext() == 'less') {
if($file->ext() == 'less' && substr($file->name, 0, 1) !== '_') {
$lessFile = $this->lessFolder->path . DS . $file->name;
$cssFile = $this->cssFolder->path . DS . str_replace('.less', '.css', $file->name);
lessc::ccompile($lessFile, $cssFile);
Expand Down

0 comments on commit 3719d61

Please sign in to comment.