path.Ext
Returns the file extension of the given path, after replacing path separators with slashes (
/).- Syntax
- path.Ext PATH
- Returns
- string
The extension is the suffix beginning at the final dot in the final slash-separated element of path; it is empty if there is no dot.
{{ path.Ext "a/b/c/news.html" }} → .htmlLast updated:
September 11, 2026
:
content: Comply with function/method description guidance in style guide (76fa3fc9e)
Improve this page