Hi,
Right now in order to manage different CDN hosts (in this case the Yahoo CDN
and my own CDN) I use a solution like the following:
{% stylesheet yuiCDN ~ 'cssbase/base-min.css' %}
{% stylesheet yuiCDN ~ 'cssgrids/grids-min.css' %}
{% stylesheet 'css/main.css' %}
This obviously requires that I inject the yuiCDN variable into the layout
template.
Right now in order to define a CDN one needs to set the setting as follows:
app.config:
templating:
assets_base_urls:
- http://foo.com
Note that 'assets_base_urls' is an array from which the asset helper randomly
picks one url. I propose to make it optionally possible
app.config:
templating:
assets_base_urls:
default:
- http://foo.com
yuiCDN:
- http://bar.com
However I think it would be nice to be able to change this to:
{% stylesheet 'cssbase/base-min.css' from 'yuiCDN' %}
{% stylesheet'cssgrids/grids-min.css' from 'yuiCDN' %}
{% stylesheet 'css/main.css' %}
This would obviously also be supported in the other asset helpers:
{% javascript '..' from 'CDNkey' %}
{% asset '..' from 'CDNkey' %}
regards,
Lukas Kahwe Smith
[email protected]
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en