audreyfeldroy / audreyfeldroy/complexity

Exclude partial templates from generation

Open
#28 2 comments 0 reactions 1 assignee Claimed by @audreyfeldroy View on GitHub
high-priority
Dominant language
Python
Stars
118
Forks
31
PR merge metrics
No merged PRs in 30d

Description

The following partial templates should be excluded from generation:
- Templates with `.part` extension
- Folders in `templates/partials`

Both of the above should be configurable. Maybe something like this in `complexity.yml` would exclude files with extension `.blah` and directories named `dont-generate-me/`:

```
excludes:
- dont-generate-me/
- .blah
```

From @friedcell on Twitter: "my previous solution was to have filename.html.part, but am open to either folder or name filter. needs to be configurable though"

@friedcell any other requirements or things I should know? Other ideas about this? Feel free to file other issues with anything that's annoying or could be better, btw.

I'll try to get this in over the next day, but in the meantime a workaround is to use complexity 0.8.0.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.