Is TemplateLocator needed when there is TemplateFactory?

Notice: This thread is very old.
Member | 94

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)