-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Return "version" argument to "asset" function #14958
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
Comments
I don't understand what you are asking here. The title of the issue and the description seem to be related to 2 different things |
Description demonstrates that this argument is really needed. |
The example in the description could still be achieved with something like the following if I don't miss anything: <img src="version-{{ asset_version('package_name) }}{{ asset('logo.png') }}"> |
So if I would change assets version format I should rewrite all of the templates according to the new format. Not so useful |
According to http://symfony.com/blog/new-in-symfony-2-7-the-new-asset-component, you can configure the version format and version in the |
What to do if I want specify version of concrete asset? In this case I should use concatenation |
I'd close this as "won't fix" because:
|
@javiereguiluz have you seen referenced commit above? Is it acceptable? If yes I can finish it and open PR |
concatenation ois not possible with specific version format. |
@Koc can't this be achieved using a custom versioning strategy? did you give it a try? Shall we close otherwise? |
I don't need this feature anymore :) |
http://symfony.com/doc/current/reference/configuration/framework.html#assets-version-format
symfony/symfony-docs#4982
Proposed solution doesn't respect
assets_version_format
but previousasset('logo.png', version=5)
does.The text was updated successfully, but these errors were encountered: