Changes:
+ * fixed filename not being added to syntax error messages
* added the autoescape option to enable/disable autoescaping
* removed the newline after a comment (mimicks PHP behavior)
* added a syntax error exception when parent block is used on a template that does not extend another one
protected $filename;
protected $rawMessage;
- public function __construct($message, $lineno = -1, $filename = 'n/a')
+ public function __construct($message, $lineno = -1, $filename = null)
{
$this->lineno = $lineno;
$this->filename = $filename;
{
$this->message = $this->rawMessage;
- if ('n/a' != $this->filename) {
+ if (null !== $this->filename) {
$this->message .= sprintf(' in %s', $this->filename);
}