make template parsing recursive