Is TemplateLocator needed when there is TemplateFactory?

5 years ago

mishak
Member | 100
+
0
-

What is not abstracted looking for template file.

How I deal with it before.

Since the introduction of ITemplateFactory I feel that my solution is obsolete or at least major part can be replaced by proxying ITemplateFactory and setting $template->setFile based on createTemplate $component parameter.

What are your thoughts? Should I create pull request for ITemplateLocator?

I am really glad ITF made it finally into Nette.

Last edited by mishak (2014-04-02 14:35)