dev-master
9999999-devRev Manifest plugin for Craft CMS
The Requires
- composer/installers ~1.0
- php >=5.3.0
Rev Manifest plugin for Craft CMS
A Craft plugin to look up a static asset's filename in an asset revisioning manifest like the one gulp-rev outputs., (*1)
To install the plugin, copy the revmanifest/ folder into craft/plugins/. Then go to Settings → Plugins and click the "Install" button next to "Rev Manifest"., (*2)
Looks up an asset path in the manifest and returns the asset revision's URL., (*3)
{{ revUrl('assets/stylesheets/app.css') }} {# outputs assets/stylesheets/app-a930f9af02.css #}
If the asset path is not present in the manifest it will return the URL for the original asset., (*4)
The asset revision's path will be appended to your Site URL. Set the Site URL in Craft's [config settings][2] and Craft doesn't have to fetch it from the database., (*5)
assetPath
You can set the path to your manifest file in Craft's [config settings][2]. Without configuration, the plugins expects the manifest file in assets/rev-manifest.json., (*6)
'revManifestPath' => 'rev-manifest.json'
Rev Manifest plugin for Craft CMS