Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Environment Variable Support in cookiecutter.json #2045

Open
sandrospadaro opened this issue Mar 20, 2024 · 0 comments
Open
Labels
enhancement This issue/PR relates to a feature request.

Comments

@sandrospadaro
Copy link

Adding environment variable support within cookiecutter.json could greatly increase Cookiecutter's adaptability for dynamic configurations.

Example Use Case: Automatically including the developer's name or email in the project metadata without manual updates:

{
  "author_name": "{{ cookiecutter.env('USER', 'Default Name') }}",
  "author_email": "{{ cookiecutter.env('MAILTO', 'default@email.com') }}"
}

This feature would allow developers to create more personalized and context-aware templates effortlessly, enhancing productivity.

Thank you for considering this suggestion.

@jensens jensens added the enhancement This issue/PR relates to a feature request. label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue/PR relates to a feature request.
Projects
None yet
Development

No branches or pull requests

2 participants