Answer the question
In order to leave comments, you need to log in
How to correctly set the template in .gitignore for smarty?
Hello.
How to correctly write a template in .gitignore for smarty, provided that the files are scattered throughout the project, that is, it is not easy:
smarty/cache/
smarty/templates_c/
Smarty-lib/
And the same cache is scattered over many project directories, and the project I myself am not small, is it possible to create a universal template?
PS I only met smarti today, so I still don’t quite understand how temporary template files are named, that’s why I’m asking for help from the community
Answer the question
In order to leave comments, you need to log in
Just write the name of the folder, then it will be ignored, regardless of location:
cache
I have not tried it myself, of course, but you can try something similar to/**/cache
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question