A high school maths teacher charged with rape and child grooming has fronted court for the first time since his arrest in July.