Skip to content

file.SetPath ​

SetPath changes the path of the current file being rendered

tpl
{{- file.SetPath "new/path/to/file.txt" }}