{{macro}} compiler can detect the most of errors in templates.
Here is the list of errors that are considered to be fatal for a {{macro}} template:
{{macro}} compiler tells you about error with short message and points at the template file and line number where error occurred.
You can find all compiled {{macro}} templates in var/compiled/ folder of your application. If you have a template that throws a error at runtime then you may want to switch off template recompilation and insert debugger break command(e.g. debugBreak(), for dbg) at the problematic point of compiled template. In some cases just a short glance at the compiled PHP code is enough to understand the source of problem in template.
Обсуждение