allow {{@index}} in attribute values

see #1035