title: how do I get with confd the key string value generate with etcd
body: <p>I am using confd and etcd. I am following the <a href="https://github.com/kelseyhightower/confd/blob/master/docs/templates-scoped-resources.md" rel="nofollow">confd example for nginx</a>. I put these keys in my etcd service:</p>
  
  <pre><code>curl http://127.0.0.1:4001/v2/keys/myapp/upstream -XPUT -d dir=true
  curl http://127.0.0.1:4001/v2/keys/myapp/subdomain -XPUT -d value="myapp"
  curl http://127.0.0.1:4001/v2/keys/myapp/upstream/app2 -XPUT -d value="10.0.1.101:80"
  curl http://127.0.0.1:4001/v2/keys/myapp/upstream/app1 -XPUT -d value="10.0.1.100:80"
  </code></pre>
  
  <p>It is my toml configuration:</p>
  
  <pre><code>[template]
  prefix = "myapp"
  keys = [
    "subdomain",
    "upstream",
  ]
  owner = "nginx"
  mode = "0644"
  src = "nginx.tmpl"
  dest = "/tmp/myapp.conf"
  check_cmd  = "/usr/sbin/nginx -t -c {{ .src }}"
  reload_cmd = "/usr/sbin/service nginx reload"
  </code></pre>
  
  <p>And it is my tmpl configuration. </p>
  
  <pre><code>upstream {{.subdomain}} {
  {{range $server := .upstream}}
      #I want to get the key string value
      server {{$sever.key}} {{$server.Value}};
  {{end}}
  }
  
  server {
      server_name  {{.subdomain}}.example.com;
  
      location / {
          proxy_pass        http://{{.subdomain}};
          proxy_redirect    off;
          proxy_set_header  Host             $host;
          proxy_set_header  X-Real-IP        $remote_addr;
          proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;
     }
  }
  </code></pre>
  
  <p>Here I want to catch the key string value like <strong>app2</strong> or <strong>app1</strong>. I am only know how to get its values. I want to do something like this <strong>{{$sever.key}}</strong> but it doesn't work. The configuration above <strong>{{$sever.key}}</strong> is wrong but I did it to show what do I want.</p>
  
  <p>Is this idea possible?</p>
  
  <p>Is there any reserverd word for that or syntax?</p>