Change template processing to allow multiple #inputs lines
Change template processing to allow multiple #inputs lines