Template factory extension for Nette