clubstudio / craft-asset-rev

A Craft CMS plugin to help with cache busting
MIT License
109 stars 7 forks source link

[Feature Request] Allow passing an Asset #27

Open benface opened 4 years ago

benface commented 4 years ago

It would be nice if the rev() function accepted Asset elements in addition to file paths. I suppose remote volumes (S3, Google Cloud, etc.) would be more work since it would have to download the file (and I'm not sure it's a good idea performance-wise), but local volumes would work like any other asset.

benface commented 4 years ago

I also posted this feature request to Craft CMS itself: https://github.com/craftcms/cms/issues/5824

If it ends up being accepted, then there would be no need to do it in this plugin.