Awee

ext-dot

FilenameExtDot returns the file extension including the leading dot.

FilenameExtDot returns the file extension including the leading dot.

Input

string

Parameters

None

Returns

string

Examples

Read an extension with the dot included

Input

file_path = "/uploads/avatar.png"

Template

{{ file_path | ext-dot }}

Output

.png

Build a filename suffix

Input

source = "Q3-report.pdf"

Template

{{ source | ext-dot }}

Output

.pdf

How is this guide?

On this page