-
Notifications
You must be signed in to change notification settings - Fork 9
No way to add CSS Options #14
Comments
Make a PR with the changes and I'll check them when I can. Instead of naming the option And instead of adding that ternary operator there, use the |
I've read up on define:cacophonous. Google was very helpful in describing what you mean. I don't have a particular love for ['cssopt'], however, ['css'] is not descriptive enough when the entire project revolves around the topic of css. How do you feel about ['css_options'] ? I will read up on what's required to make a PR and do that as soon as I'm able. |
If the variable is named Maybe |
I very much appreciate the work that you've done to get us this far and don't want to seem ungrateful. I suspect that after this submit, I'll never look at this code again. We can name all the variables css, and I'll sleep just fine. My only desire was to clean up all the sludge getting created in my css directory on my personal development server. I'll explain my reason, but, honestly I don't care what it gets called. $this->less() gets called with $options, $options contains $options['parser'] , which is passed into $this->compile() and used as $options. So, $options['parser'] becomes $options in the compile context. When those options are actually used, they are passed to \Less_Cache::Get() and used as $parser_options which makes sense to me. I think that instead of being called $options inside the $this->compile() method, it should be called $parser_options, which is a more descriptive and and more consistent with it's usage. the method $this->Html->css() needs to get some options too and that's what we're discussing. Maybe ['HTMLoptions'] would be more palatable to you because it's being passed to the HTML helper, I don't think ['cssTag'] is at all descriptive of what the property is supposed to do, but, once again, I don't care. I'll sleep just fine regardless of what it's called. |
I wont sleep fine if I name it Let's name it just However, I take into account your comments for the SASS version, which I would like to create soon or later. |
When Html->css is called on line 157, there is no way to set options.
I've made this small change which allows for setting Html->css options.
$cssOpt = isset($options['cssopt'] )?$options['cssopt']:[];
return $this->Html->css($css,$cssOpt);
The text was updated successfully, but these errors were encountered: