tpltostr

convert template into string