Lazily initialize templates.