Jingo has some helpers that make this easier:

```
<li title="{{ ext.id }}" {{ ifeq(ext.isActive, False, ' class="inactive"') }}>
```

https://jingo.readthedocs.org/en/latest/

I'm not sure if it's better/worse, but it's there.