(In case the variable names are not clear enough out of context.)
I think the correct order is in the documentation. It should go specific -> general, so the actual implementation should be adjusted.
Also, should throw in a specific unit test for this, the one there right now doesn't test for the potential of multiple templates for the same component. Link to test.
In the docs, I have the template resolution for components written down as:
Link
However, in the actual code, it's the other way around:
https://github.com/joshuadavidthomas/django-bird/blob/1e27e57463c28a6e5b896a0624373dda98bccd40/src/django_bird/templatetags/django_bird.py#L158-L163
https://github.com/joshuadavidthomas/django-bird/blob/1e27e57463c28a6e5b896a0624373dda98bccd40/src/django_bird/templatetags/django_bird.py#L138-L147
(In case the variable names are not clear enough out of context.)
I think the correct order is in the documentation. It should go specific -> general, so the actual implementation should be adjusted.
Also, should throw in a specific unit test for this, the one there right now doesn't test for the potential of multiple templates for the same component. Link to test.