Better handle empty suffix
See original GitHub issueI tried to bypass (😈) using a suffix for templates with _templates_suffix: ""
in my copier.yml
. Unfortunately it didn’t work as expected: only directories were rendered (see #185), and no file was copied/rendered at all, even files with no extension.
Not sure what the code is doing with the suffix, but surely an error/warning could be displayed if the suffix is empty.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
java - Avoid prefix suffix for blank string in Collectors.joining
Now what I want is to avoid the prefix and suffix in case if blank String. So, any suggestion?
Read more >Request: Add empty prefix/suffix as a search parameter #320
This is a more complex problem than just adding empty --- modifiers filter. Found 64 items for this query.
Read more >Am I wrong or can we no longer search for open prefix/suffix ...
I know you can still search for #empty prefix or suffix, or even # used prefix or suffix, but this is ALOT worse...
Read more >Create a User With a Empty Suffix in Windows AD - Server Fault
All users in AD have a UPN suffix whether you explicitly add it or not. When you create users via code, the userPrincipalName...
Read more >Removing the prefix or suffix for a blank AD field
Set the Hide if blank property to true. If the field is blank in the AD, the prefix and suffix will not appear...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Alright! Then I’ll try to send a PR with a fix 🙂
Ah I see. Well, I think that the case of empty suffix, meaning that all files are templates, should be valid.