-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More methods to interface #2
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 Originally posted by @geerteltink at zendframework/zend-expressive-template#12 (comment) |
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. Originally posted by @harikt at zendframework/zend-expressive-template#12 (comment) |
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.
Originally posted by @harikt at zendframework/zend-expressive-template#12
The text was updated successfully, but these errors were encountered: