smarty-php / smarty

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic.
Other
2.23k stars 703 forks source link

Add template path to CompilerException to enable rich debug features #935

Closed wisskid closed 5 months ago

wisskid commented 5 months ago

By adding the full template path to the Smarty\CompilerException when it is thrown, stracktraces such as in the Symfony exception screen can show the source code of the template that triggered the error inline.