Take in parent of template_dir as input arg instead of template_dir.