fabpot/Twig — Issue #643: One-sided inheritance
Author: abxccd
Created: 2012-02-22 09:22:00+00:00
State: open

I am seeing issues with one-sided inheritance implemented in the following ways:

```
{% extends standalone ? "minimum.html" : null %}
```
Throws this exception:
```
Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'Unable to find template ""
```

If I use

```
{% if standalone %}
{% extends "minimum.html" %}
{% endif %}

The following exception is thrown:
```
Fatal error: Uncaught exception 'Twig_Error_Runtime' with message 'Node "1" does not exist for Node "Twig_Node" in "template.html"
```

My feeling is that this has something to do with the NULL datatype in twig.

IS this something that can be fixed?