Skip to content

file.SetPath

SetPath changes the path of the current file being rendered

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