This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Description Prerequisites
Description
My file isn't being detected as a golang text/template.
Steps to Reproduce
Open my file
See that file isn't being detected
Expected behavior: [What you expect to happen]
Template to be detected as golang text/template instead of HTML
Actual behavior: [What actually happens]
Template is detected as HTML
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Versions
> atom --version
Atom : 1.13.0
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0
> apm -v
apm 1.14.1
npm 3.10.5
node 4.4.5
python 2.7.13
git 2.11.0
Additional Information
My caddy.tmpl file.
{{ range $host, $containers := groupByMulti $ "Env.VIRTUAL_HOST" "," }}
{{ $host }} {
{{ range $index, $container := $containers }}
{{ $addrLen := len $container.Addresses }}
{{ if eq $addrLen 1 }}
{{ with $address := index $container.Addresses 0 }}
proxy / {{ $address.IP }}:{{ $address.Port }} {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Proto {scheme}
}
{{ end }}
{{ else if $container.Env.VIRTUAL_PORT }}
{{ range $i, $address := $container.Addresses }}
{{ if eq $address.Port $container.Env.VIRTUAL_PORT }}
proxy / {{ $address.IP }}:{{ $address.Port }} {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Proto {scheme}
}
{{ end }}
{{ end }}
{{ else }}
{{ range $i, $address := $container.Addresses }}
{{ if eq $address.Port "80" }}
proxy / {{ $address.IP }}:{{ $address.Port }} {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Proto {scheme}
}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
}
{{ end }}
Reactions are currently unavailable
Prerequisites
Description
My file isn't being detected as a golang text/template.
Steps to Reproduce
Expected behavior: [What you expect to happen]
Template to be detected as golang text/template instead of HTML
Actual behavior: [What actually happens]
Template is detected as HTML
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Versions
Additional Information
My
caddy.tmplfile.