title: How to get cookiecutter to output to current working directory instead of nested directory?
body: <p>We have a number of use cases where we'd like to be able to call cookiecutter and have the files and directories generated get put into the current working directory.</p>
  <h2>Simple example</h2>
  <p>What is essentially desired.</p>
  <pre><code>$ cd path/to/repo
  $ ls
  a.txt
  $ cookiecutter path/to/template
  $ls
  a.txt b.txt
  </code></pre>
  <p>What the result actually is</p>
  <pre><code>$ cd path/to/repo
  $ ls
  a.txt
  $ cookiecutter path/to/template
  $ls
  a.txt 
  template/
    b.txt
  </code></pre>
  <h2>Things I've tried</h2>
  <ol>
  <li>You could imagine the template being something like this.</li>
  </ol>
  <pre><code>template/
    cookiecutter.json
    b.txt
  </code></pre>
  <p>But cookiecutter appears to require there to be a template root by default to avoid <code>cookiecutter.exceptions.NonTemplatedInputDirException</code>.</p>
  <ol start="2">
  <li>So, add a directory to contain the template files and try and output it to a particular directory.</li>
  </ol>
  <pre><code>template/
    cookiecutter.json
    {{cookiecutter.name}}
  </code></pre>
  <p>But then the template files are just nested in a subdirectory of the current working directory like shown above of course.</p>
  <ol start="3">
  <li>I also expect one could use a post-generate hook to move the template's output files to where you want, but that seems like a bit of a hack...</li>
  </ol>
  <p>I keep seeing comments on GitHub saying basically &quot;this is solved&quot;, but I can't seem to find documentation on how to use whatever feature was added to accommodate this use case.</p>
  <ul>
  <li><a href="https://github.com/cookiecutter/cookiecutter/issues/1068" rel="nofollow noreferrer">https://github.com/cookiecutter/cookiecutter/issues/1068</a></li>
  <li><a href="https://github.com/cookiecutter/cookiecutter/issues/35" rel="nofollow noreferrer">https://github.com/cookiecutter/cookiecutter/issues/35</a></li>
  <li><a href="https://github.com/cookiecutter/cookiecutter/issues/153" rel="nofollow noreferrer">https://github.com/cookiecutter/cookiecutter/issues/153</a></li>
  </ul>