file_extension

The file_extension filter parses the file path and returns just the extension value if it exists.

{{ '/path/to/my/file.pdf'|file_extension }}

< Back to the list of filters