hyde / hyde

A Python Static Website Generator (Presently Unmaintained).
http://hyde.github.io
MIT License
1.63k stars 245 forks source link

Make it possible to append to plugin list when inheriting config #256

Open tasn opened 10 years ago

tasn commented 10 years ago

I've created the new HtmlMin plugin. For convenience, this should only be used in production, however, I can't add the plugin, because I can't append to the list when inheriting.

I could just turn the plugin off using it's own config in the development site.yaml, and then enable it in the production, but that's ugly. :)

navilan commented 10 years ago

Hi, Hyde 1.0 will have patchable configuration. That said, this particular use case has been addressed within the plugins themselves. See the uglify plugin for example: https://github.com/hyde/hyde/blob/master/hyde/ext/plugins/js.py#L53-L55

tasn commented 10 years ago

Patched configuration would be better, but sure, one could just adjust the plugins to not do it on development mode. I wanted to avoid this for HtmlMin, I could add it if wanted.

navilan commented 10 years ago

Yeah, one of the design goals for hyde (this edition as opposed to 0.5 edition at lakshmivyas/hyde) has been to simplify the plugins to be a simple list.

Handling development vs production, their own configuration etc have been a part / side effect of this decision. So far, I have not found any issues with that.