GetFileExtension

Get file extension from file (string) and display correctly file extension with abbr HTML tag.

Usage

{{ partial "func/GetFileExtension" $file }}

Example

Usage

{{ partial "func/GetFileExtension" "filename.pdf" }}

HTML rendered

<abbr>PDF</abbr>