Modify class list rendered by template engine