{"action":"created","issue":{"url":"https://api.github.com/repos/audreyr/cookiecutter/issues/848","repository_url":"https://api.github.com/repos/audreyr/cookiecutter","labels_url":"https://api.github.com/repos/audreyr/cookiecutter/issues/848/labels{/name}","comments_url":"https://api.github.com/repos/audreyr/cookiecutter/issues/848/comments","events_url":"https://api.github.com/repos/audreyr/cookiecutter/issues/848/events","html_url":"https://github.com/audreyr/cookiecutter/pull/848","id":187847482,"number":848,"title":"New context format","user":{"login":"hackebrot","id":6024445,"avatar_url":"https://avatars.githubusercontent.com/u/6024445?v=3","gravatar_id":"","url":"https://api.github.com/users/hackebrot","html_url":"https://github.com/hackebrot","followers_url":"https://api.github.com/users/hackebrot/followers","following_url":"https://api.github.com/users/hackebrot/following{/other_user}","gists_url":"https://api.github.com/users/hackebrot/gists{/gist_id}","starred_url":"https://api.github.com/users/hackebrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackebrot/subscriptions","organizations_url":"https://api.github.com/users/hackebrot/orgs","repos_url":"https://api.github.com/users/hackebrot/repos","events_url":"https://api.github.com/users/hackebrot/events{/privacy}","received_events_url":"https://api.github.com/users/hackebrot/received_events","type":"User","site_admin":false},"labels":[{"id":113651006,"url":"https://api.github.com/repos/audreyr/cookiecutter/labels/discussion","name":"discussion","color":"bfe5bf","default":false},{"id":47798247,"url":"https://api.github.com/repos/audreyr/cookiecutter/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":52833453,"url":"https://api.github.com/repos/audreyr/cookiecutter/labels/high-priority","name":"high-priority","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-11-07T22:26:04Z","updated_at":"2016-11-09T00:27:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/audreyr/cookiecutter/pulls/848","html_url":"https://github.com/audreyr/cookiecutter/pull/848","diff_url":"https://github.com/audreyr/cookiecutter/pull/848.diff","patch_url":"https://github.com/audreyr/cookiecutter/pull/848.patch"},"body":"This is a proof-of-concept implementation for loading a new format for **cookiecutter.json** 😄 \r\n\r\nThere are a number of features missing from this, but it should be sufficient to allow feedback on the specification. You can run the example via ``$ python cookiecutter/context.py``. Nothing will be generated, but the prompting is done (hardcoded to *verbose*) and the resulting context as an OrderedDict is pprinted.\r\n\r\n@audreyr @pydanny @michaeljoseph 👋 \r\n\r\nPlease let me know your thoughts and I'll happily make changes to the spec.\r\n"},"comment":{"url":"https://api.github.com/repos/audreyr/cookiecutter/issues/comments/259302818","html_url":"https://github.com/audreyr/cookiecutter/pull/848#issuecomment-259302818","issue_url":"https://api.github.com/repos/audreyr/cookiecutter/issues/848","id":259302818,"user":{"login":"huguesv","id":1696845,"avatar_url":"https://avatars.githubusercontent.com/u/1696845?v=3","gravatar_id":"","url":"https://api.github.com/users/huguesv","html_url":"https://github.com/huguesv","followers_url":"https://api.github.com/users/huguesv/followers","following_url":"https://api.github.com/users/huguesv/following{/other_user}","gists_url":"https://api.github.com/users/huguesv/gists{/gist_id}","starred_url":"https://api.github.com/users/huguesv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huguesv/subscriptions","organizations_url":"https://api.github.com/users/huguesv/orgs","repos_url":"https://api.github.com/users/huguesv/repos","events_url":"https://api.github.com/users/huguesv/events{/privacy}","received_events_url":"https://api.github.com/users/huguesv/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T00:27:47Z","updated_at":"2016-11-09T00:27:47Z","body":"I like it too.  Here are some of my thoughts that haven't been brought up already.\r\n\r\nIt may be good to add examples of specifying `_copy_without_render` and `_extensions` in the new format.\r\n\r\nOld format:\r\n```\r\n{\r\n    \"project_slug\": \"Foobar\",\r\n    \"year\": \"{% now 'utc', '%Y' %}\",\r\n    \"_extensions\": [\"jinja2_time.TimeExtension\"],\r\n    \"_copy_without_render\": [\r\n        \"*.html\",\r\n        \"*not_rendered_dir\",\r\n        \"rendered_dir/not_rendered_file.ini\"\r\n    ]\r\n}\r\n```\r\n\r\nFor specifying extensions, it would be good to have the pip requirements there in addition to imported module, like @zooba idea for cookiecutter itself.  This way we have the ability to prompt or automatically install any missing extension.\r\n\r\nI worry about localization more than most, and I wonder what that means for cookiecutter templates and Visual Studio. Most of Visual Studio is localized, and for cookiecutter GUI, does that mean localizing the prompts and descriptions in templates? What implications would this have on the json format? FYI I had filed my thoughts on what we could do a few weeks ago, based on the `_visual_studio` extended metadata we currently have: https://github.com/Microsoft/PTVS/issues/1758\r\n"}}
{"actor":{"display_login":"huguesv"}}