+ {{ $program := "" }}
+ {{ $depfile := "" }}
+ {{ $deplang := "" }}
+ {{ if eq $language "javascript" }}
+ {{ $program = "index.js" }}
+ {{ $depfile = "package.json" }}
+ {{ $deplang = "json" }}
+ {{ else if eq $language "typescript" }}
+ {{ $program = "index.ts" }}
+ {{ $depfile = "package.json" }}
+ {{ $deplang = "json" }}
+ {{ else if eq $language "python" }}
+ {{ $program = "__main__.py" }}
+ {{ $depfile = "requirements.txt" }}
+ {{ $deplang = "plain" }}
+ {{ else if eq $language "go" }}
+ {{ $program = "main.go" }}
+ {{ $depfile = "go.mod" }}
+ {{ $deplang = "bash" }}
+ {{ else if eq $language "csharp" }}
+ {{ $program = "Program.cs" }}
+ {{ $depfile = printf "%s.csproj" (printf "%s-%s" $path $language) }}
+ {{ $deplang = "xml" }}
+ {{ else if eq $language "java" }}
+ {{ $program = "src/main/java/myproject/App.java" }}
+ {{ $depfile = "pom.xml" }}
+ {{ $deplang = "xml" }}
+ {{ else if eq $language "yaml" }}
+ {{ $program = "Pulumi.yaml" }}
+ {{ end }}
+ {{ if ne $program "" }}
+ {{ $root := slice "static" "programs" (printf "%s-%s" $path $language) }}
+ {{ $code := readFile (path.Join $root $program) }}
+ {{ $info := os.Stat (path.Join $root) }}
+
+ {{ highlight $code $language }}
+
+ {{ end }}
+
+