let the template parser return an option to be able to manage failure