Merge pull request #699 from shultz/issue-698

Escape description and author_name in post_gen hook
This commit is contained in:
Audrey Roy Greenfeld 2016-08-20 11:00:34 -07:00 committed by GitHub
commit d56551f888
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',