ext-trim
FilenameTrimExt returns the file path without its extension.
FilenameTrimExt returns the file path without its extension.
Input
string
Parameters
None
Returns
string
Examples
Drop the extension from a file path
Input
file_path = "/uploads/avatar.png"Template
{{ file_path | ext-trim }}Output
/uploads/avatarGet the bare report name
Input
source = "Q3-report.pdf"Template
{{ source | ext-trim }}Output
Q3-reportHow is this guide?