Keats / tera

A template engine for Rust based on Jinja2/Django
http://keats.github.io/tera/
MIT License
3.43k stars 279 forks source link

Stack overflow when template extends itself #872

Closed LinuxHeki closed 10 months ago

LinuxHeki commented 10 months ago

If you include {% extends "example.html" %} in file example.html the program will overflow its stack. This should give proper error and not crash.

Keats commented 10 months ago

This is already fixed in v2 (https://github.com/Keats/tera2, just added a test for it) and will give an error when you are adding the template to the Tera instance.