torchbox / django-pattern-library

UI pattern libraries for Django templates
https://torchbox.github.io/django-pattern-library/
BSD 3-Clause "New" or "Revised" License
368 stars 46 forks source link

render_patterns should continue execution when a template fails to render #136

Open thibaudcolas opened 3 years ago

thibaudcolas commented 3 years ago

Is your proposal related to a problem?

In its current instance, the render_patterns command stops execution as soon as a template fails to render.

Describe the solution you'd like

While this might be suitable as a basic check, it would be better for it to keep processing other patterns, displaying errors along the way, and then returning with an error status code.

At the same time it would be nice to consider whether:

Describe alternatives you've considered

Fix all patterns 😬

Additional context

This would also be a good occasion to review the output of the command to check whether it’s suitable or not.