Escape description and author_name in post_gen hook

Fixes #698
This commit is contained in:
Dan Shultz 2016-07-27 16:34:32 -05:00
parent f6e27dd240
commit 814df9bc6c
2 changed files with 3 additions and 2 deletions

View File

@ -68,6 +68,7 @@ Listed in alphabetical order.
Collederas `@Collederas`_ Collederas `@Collederas`_
Cristian Vargas `@cdvv7788`_ Cristian Vargas `@cdvv7788`_
Cullen Rhodes `@c-rhodes`_ Cullen Rhodes `@c-rhodes`_
Dan Shultz `@shultz`_
Daniele Tricoli `@eriol`_ Daniele Tricoli `@eriol`_
David Díaz `@ddiazpinto`_ @DavidDiazPinto David Díaz `@ddiazpinto`_ @DavidDiazPinto
Davur Clementsen `@dsclementsen`_ @davur Davur Clementsen `@dsclementsen`_ @davur

View File

@ -177,8 +177,8 @@ def add_webpack():
'project_dir': '{{ cookiecutter.project_slug }}', 'project_dir': '{{ cookiecutter.project_slug }}',
'static_root': '{{ cookiecutter.project_slug }}/static/{{ cookiecutter.project_slug }}', 'static_root': '{{ cookiecutter.project_slug }}/static/{{ cookiecutter.project_slug }}',
'production_output_path': '{{ cookiecutter.project_slug }}/static/{{ cookiecutter.project_slug }}/dist/', 'production_output_path': '{{ cookiecutter.project_slug }}/static/{{ cookiecutter.project_slug }}/dist/',
'author_name': '{{ cookiecutter.author_name }}', 'author_name': '{{ cookiecutter.author_name | escape }}',
'description': '{{ cookiecutter.description }}', 'description': '{{ cookiecutter.description | escape }}',
'version': '{{ cookiecutter.version }}', 'version': '{{ cookiecutter.version }}',
'existing_project': 'y', 'existing_project': 'y',
'css_extension': 'sass', 'css_extension': 'sass',