support multiple columns in template.