Render template with class names