diff --git a/cookiecutter/generate.py b/cookiecutter/generate.py
index <HASH>..<HASH> 100755
--- a/cookiecutter/generate.py
+++ b/cookiecutter/generate.py
@@ -109,8 +109,12 @@ def generate_files(template_dir, context=None):
                 shutil.copyfile(infile, outfile)
 
             else:
+                # Force fwd slashes on Windows for get_template
+                # This is a by-design Jinja issue
+                infile_fwd_slashes = infile.replace(os.path.sep, '/')
+
                 # Render the file
-                tmpl = env.get_template(infile)
+                tmpl = env.get_template(infile_fwd_slashes)
                 rendered_file = tmpl.render(**context)
 
                 # Render the output filename before writing
Force fwd slashes for Jinja's env.get_template() (#<I>)

Jinja2's FileSystemLoader converts forward slashes to os.path.sep
automatically by design. This results in failures when using
env.get_template() on Windows. This is a workaround to fix that.