8000 Nested Config Files: New format for "template" key · Issue #1980 · cookiecutter/cookiecutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Nested Config Files: New format for "template" key #1980
Closed
@ericof

Description

@ericof

Description:

The format for the template key requires some additional parsing:

    {
        "template": [
            "Project 1 (./project-1)",
            "Project 2 (./project-2)"
        ]
    }

Our proposal is also to support the following format:

    {
        "templates": {
            "project-1": {
                "path": "./project-1",
                "title": "Project 1",
                "description": "A cookiecutter template for a project"
            },
            "project-2": {
                "path": "./package",
                "title": "Package",
                "description": "A cookiecutter template for a package"
            }
        }
    }

Tasks

  • Still support the old format under template (but display a deprecation warning)
  • Implement the new format under the templates key
  • Support external templates (if possible)

Metadata

Metadata

Assignees

Labels

enhancementThis issue/PR relates to a feature request.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    8E
    0