prepare template detail