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

Fix cookiecutter configuration #2

Open
Alurith opened this issue Mar 25, 2022 · 0 comments
Open

Fix cookiecutter configuration #2

Alurith opened this issue Mar 25, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Alurith
Copy link
Owner

Alurith commented Mar 25, 2022

The following variables should be rendered without user interaction:

  • "app_name_slug": "{{ cookiecutter.app_name|lower|replace(' ', '-') }}",
  • "app_class": "{{ cookiecutter.app_name_slug|lower|replace(' ', '-') }}",
  • "project_slug": "{{ cookiecutter.project_name|lower|replace(' ', '-') }}",

But if I add the double underscore as suggested in the cookiecutter manual like this:

  • "__app_name_slug": "{{ cookiecutter.app_name|lower|replace(' ', '-') }}",
  • "__app_class": "{{ cookiecutter.app_name_slug|lower|replace(' ', '-') }}",
  • "__project_slug": "{{ cookiecutter.project_name|lower|replace(' ', '-') }}",

The behavior is that it doesn't render the variable at all.

My Cookiecutter version is 1.7.3

@Alurith Alurith added the bug Something isn't working label Mar 25, 2022
@Alurith Alurith changed the title Improve cookiecutter configuration Fix cookiecutter configuration Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant