For the complete documentation index, see llms.txt. This page is also available as Markdown.

$extname

Returns the extension name of a filename.

Signature

{{$extname filename }}

Arguments

Name
Description
Type
Required

filename

The name of the file that you're trying to get the extension name of.

String

Example

{{$extname filename}}

Last updated

Was this helpful?