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

chore: cookiecutter copy-without-rendor support #117

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

noelmcloughlin
Copy link
Contributor

@noelmcloughlin noelmcloughlin commented Aug 17, 2024

This PR adds "copy without render" placeholder to cookiecutter.json per documentation:

_To avoid rendering directories and files of a cookiecutter, the copy_without_render key can be used in the cookiecutter.json.

Justification

I was testing #118 and cookiecutter was failing with huge stracktrace, and after much troubleshooting this PR fixed the issue by skipping the JS file.

│ ╭──────────────────────────────────── locals ────────────────────────────────────╮ │
│ │ rewrite_traceback_stack = <function rewrite_traceback_stack at 0x7f682b1d8820> │ │
│ │                    self = <cookiecutter.environment.StrictEnvironment object   │ │
│ │                           at 0x7f682b826860>                                   │ │
│ │                  source = '<!DOCTYPE html><html lang="en"><head><script        │ │
│ │                           async="" src="https://www.googletag'+7751699         │ │
│ ╰────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                    │
│ in template:4                                                                      │
╰────────────────────────────────────────────────────────────────────────────────────╯
TemplateSyntaxError: unexpected char '\\' at 3233749
  File "src/docs/js/test.js", line 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant