Add line number reference when an error is found in template parsing
Submitted by Daniel Espinosa Ortiz
When creating a template, found an error:
"Unexpected end-of-file reached"
But other information, then I take a lot of time searching if this is an error on Python or any other place. Finally use grep to find this text in code and found it is related to template parsing, then I've added some text to show that this error is related to templates syntax error, but is hard to find if you don't have a line or file where the error belongs.