Use generator arguement and result in the template