* the include tag now merges the passed variables with the current context by default
(the old behavior is still possible by adding the "only" keyword)
+ * fixed child templates (with an extend tag) that uses one or more imports
* added support for {{ 1 not in [2, 3] }} (more readable than the current {{ not (1 in [2, 3]) }})
* escaping has been rewritten (from pre-escaping to post-escaping)
* the implementation of template inheritance has been rewritten
if (
($node instanceof Twig_Node_Text && !preg_match('/^\s*$/s', $node->getAttribute('data')))
||
- (!$node instanceof Twig_Node_Text && !$node instanceof Twig_Node_BlockReference)
+ (!$node instanceof Twig_Node_Text && !$node instanceof Twig_Node_BlockReference && !$node instanceof Twig_Node_Import)
) {
throw new Twig_SyntaxError('A template that extends another one cannot have a body', $node->getLine(), $this->stream->getFilename());
}