diff --git a/cookiecutter.json b/cookiecutter.json index cf4da9a45..b24ce4286 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -4,7 +4,7 @@ "description": "Behold My Awesome Project!", "author_name": "Daniel Roy Greenfeld", "domain_name": "example.com", - "email": "{{ cookiecutter.author_name.lower()|replace(' ', '-') }}@example.com", + "email": "{{ cookiecutter.author_name.lower() | trim() |replace(' ', '-') }}@{{ cookiecutter.domain_name.lower() | trim() }}", "version": "0.1.0", "open_source_license": [ "MIT", diff --git a/hooks/pre_gen_project.py b/hooks/pre_gen_project.py index c3eef1e43..61176630c 100644 --- a/hooks/pre_gen_project.py +++ b/hooks/pre_gen_project.py @@ -80,3 +80,8 @@ if ( "Mail Service for sending emails." ) sys.exit(1) + +""" +{{ cookiecutter.update({ "domain_name": cookiecutter.domain_name | trim }) }} +{{ cookiecutter.update({ "email": cookiecutter.email | trim }) }} +"""