Hardly even noticeable, but I discovered a very niche bug when the browsepy Flask template streamer crashed whenever it would attempt to compile the following line in any template:
{%- import "bootstrap/utils.py" as utils -%}
I was left scratching my head trying to figure out where the root of the issue was. I took a closer look at the source for the file, noticed the malformatted span in the macro:
I was able to close the tag, test it out, and confirm that is was the missing > from the tag was enough to break parser used to chunk the template into a streaming response.
Hardly even noticeable, but I discovered a very niche bug when the browsepy Flask template streamer crashed whenever it would attempt to compile the following line in any template:
I was left scratching my head trying to figure out where the root of the issue was. I took a closer look at the source for the file, noticed the malformatted span in the macro:
I was able to close the tag, test it out, and confirm that is was the missing
>
from the tag was enough to break parser used to chunk the template into a streaming response.