Skip to content

Added $strict parameter to rev() function

Latest
Compare
Choose a tag to compare
@scottwakefield scottwakefield released this 22 Jun 10:29
· 1 commit to master since this release

This PR introduces an optional $strict parameter to the {{ rev(...) }} Twig function that allows you to have FilenameRev fallback to appending a query string in case the file does not exist in the manifest.

Non-existing files will also pass through if $strict = false as well.