-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement $hasCss in templates #712
Comments
Oh and please specify what to do with CSS inherited from the parent class, if any. |
You asked
Fabio answered!
😃 |
That's a good question :) http://ariatemplates.com/usermanual/latest/template_inheritance#css-inheritance
What is actually the rationale for that? (I'm not questioning it, just to know the reason). Is it to not have bloated templates after a few levels of inheritance? Solution one -
|
In order to avoid creating confusion, I suggest that $css and $hasCSS behave the same, i.e. child discards everything from parent. What do you think ? |
I think that there is already a certain ambiguity in the way we handle the inheritance of the This ambiguity could be increased by adding the My conclusion is that I don't like the |
I'm not a big fan of it either and find it confusing for new users. |
I am not also in favor of this one.... here with CSS we can't do any of these. We have no way to merge the CSS code produced in an optimal way |
Ok, so the last proposal with perhaps less confusion:
Thoughts? |
Do we really need this? I still see the |
Seems no one loves the idea, hence I'm closing it now as won't fix. |
Implement
$hasCss
which will work in a similar fashion to$hasScript
, so it'll take the template's classpath, append 'Css' (instead of 'Script') and add this to$css
array list of CSS dependencies of the template.I can't believe this hasn't been implemented yet :)
The text was updated successfully, but these errors were encountered: