Actually, I think the following suffices:

```ruby
@markup_builder.li { super } unless transition.templated_url
```