2017 © Pedro Peláez
 

craft-plugin craft-revmanifest

Rev Manifest plugin for Craft CMS

image

carlcs/craft-revmanifest

Rev Manifest plugin for Craft CMS

  • Tuesday, February 2, 2016
  • by carlcs
  • Repository
  • 1 Watchers
  • 2 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

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)

Installation

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)

Twig function

revUrl( assetPath )

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)

Parameters

assetPath
The original asset path.

Settings

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'

The Versions

02/02 2016

dev-master

9999999-dev

Rev Manifest plugin for Craft CMS

  Sources   Download

The Requires

 

02/02 2016

v1.0.2

1.0.2.0

Rev Manifest plugin for Craft CMS

  Sources   Download

The Requires