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

wip: add copy context for file name replacement without j2 extension #2

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

dpastoor
Copy link
Member

@dpastoor dpastoor commented Jun 30, 2024

This PR will allow files to be renamed by path without the j2 extension.

Eg {{proj_name}}.Rproj --> should be renamed without needing to be {{proj_name}}.Rproj.j2

This will allow IDE's to still recognize those files fine while developing the template.

As such, the current behavior will become:

  • all template (.j2) files are run through the template by both name and content
  • all files that aren't templates are run through by name only

non-goals

suppress whether a file should be NOT passed through the template - I'm sure that scenario may come up one day in the future, but when tangible use cases to determine how to supress/ignore/etc we can adapt the api then.

@andriygm andriygm marked this pull request as ready for review July 5, 2024 15:44
@andriygm andriygm closed this Jul 5, 2024
@andriygm andriygm reopened this Jul 5, 2024
@andriygm andriygm merged commit 8fd9caf into main Jul 5, 2024
2 checks passed
@andriygm andriygm deleted the file-renaming branch July 5, 2024 15:44
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.

2 participants