Issue #8686 by tuj: Refactored templates so they are loaded from the disk.