Fixed #21768 -- Corrected TemplateView context section.

Thanks nedbatchelder for the report and claudep for the patch.