Path
Pull apart file paths - directory, name, and extension.
Path
dirnameReturns the directory portion of a file path, everything up to but not
including the final path element.{{ path | dirname }}extReturns the file extension without the leading dot, for example
"png" for "avatar.png".{{ path | ext }}ext_dotReturns the file extension including the leading dot, for
example ".png" for "avatar.png".{{ path | ext_dot }}ext_prependInserts an extra extension segment just before the existing
file extension, so "styles.css" with "min" becomes "styles.min.css".{{ path | ext_prepend:'min' }}ext_trimReturns the file path without its trailing extension.{{ path | ext_trim }}filenameReturns the base file name from a path, the final path element
including its extension.{{ path | filename }}