this is polymer s templating system  unfortunately the syntax does not allow expressions like index this is probably one of my single biggest gripes with polymer in litelement  i look forward to moving to directly using javascript code for templating  lit html s templating style feels kind of similar to jsx but with strings instead  to avoid this sort of thing 