Add attributes contents in template