Add template generation using DoT