{{ $targetPath := "js/main.js" }} {{ $main := resources.Get $targetPath }} {{ with $main }} {{ $js := . | resources.Minify }} {{ end }}