Updating template class attributes in twig