funkybob / django-sniplates

Template snippet libraries for Django
MIT License
57 stars 18 forks source link

Reuse swallows empty blocklists silently. #50

Open kezabelle opened 7 years ago

kezabelle commented 7 years ago

Similar I think to the fix in 53b4205207a5a473f251435f59948fffcd3678f2 for form_field, given: {% reuse '' %} or (how I discovered it) not quoting the blockname {% reuse blockname %} will silently fail because the block_list the function receives is u''

funkybob commented 7 years ago

Ah, I see reuse doesn't use find_block, which would raise a syntax error in this case.