audreyfeldroy / complexity

A refreshingly simple static site generator, for those who like to work in HTML.
Other
118 stars 32 forks source link

Exclude partial templates from generation #28

Open audreyfeldroy opened 11 years ago

audreyfeldroy commented 11 years ago

The following partial templates should be excluded from generation:

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.

friedcell commented 11 years ago

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

audreyfeldroy commented 11 years ago

@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 :)