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

Exclude partial templates from generation #28

Open
audreyfeldroy opened this issue Sep 11, 2013 · 2 comments
Open

Exclude partial templates from generation #28

audreyfeldroy opened this issue Sep 11, 2013 · 2 comments
Assignees

Comments

@audreyfeldroy
Copy link
Owner

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.

@ghost ghost assigned audreyfeldroy Sep 11, 2013
@friedcell
Copy link
Contributor

Looks good. I implemented the .part thing in my fork already (as it was simple), didn't go into the conf thing though..

@audreyfeldroy
Copy link
Owner Author

@friedcell Oh I see that, nice. I want to merge that in!

Saw that your commits are stacked from your branch. If it'll be easier for you to just send 1 pull request with multiple features, that's fine for this time :)

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

No branches or pull requests

2 participants