Usage
{{ partial "func/GetFileExtension" $file }}
Example
Usage
{{ partial "func/GetFileExtension" "filename.pdf" }}
HTML rendered
<abbr>PDF</abbr>
Get file extension from file (string) and display correctly file extension with abbr HTML tag.
{{ partial "func/GetFileExtension" $file }}
{{ partial "func/GetFileExtension" "filename.pdf" }}
<abbr>PDF</abbr>