{{ $targetPath := "js/main.js" }}
{{ $main := resources.Get $targetPath }}
{{ with $main }}
{{ $js := . | resources.Minify }}
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
{{ end }}
