-
Notifications
You must be signed in to change notification settings - Fork 5
More methods to interface #12
Comments
I'm not really sure I understand the use case. Right now you can setup the paths relatively to the project root and / or modules. This is done for you if you've setup your project with the skeleton. So if you store your templates somewhere else you can set it in your config. Or if you have your templates temporary stored somewhere else you could setup the template paths in Also since TwigRenderer 1.2.0 you can have access to the |
Hi @xtreamwayz , Thank you for looking into this. I am not looking for just one implementation. I am looking for every renderer, whether it is twig, mustache, plate or you name it. Why ? Say I have module
The
In the action I have the namespace to render the file.
What I am looking with a prependPath is I can tell You could argue that I can add the ApplicationModule.php to load first. But this is the case what I am looking for. Hope you understand what I am looking for. Thank you. |
This repository has been closed and moved to mezzio/mezzio-template; a new issue has been opened at mezzio/mezzio-template#2. |
Hi,
Expressive currently have an addPath signature as below.
But recently I was experimenting and noticed it may be good to have a
prependPath
also. Basically the idea is I can change the path of the file located to load it first .I noticed there is a prependPath in twig .
Can we add a
prependPath
to this interface for the next higher version ? This helps to work with appending path.Bonus :
If anyone thinks
setPaths
is nice to have. Please do add .Thank you.
The text was updated successfully, but these errors were encountered: