Template class for nette.