generate looks for __template in the current dir by default