A
A
Andrew2015-08-14 13:19:02
git
Andrew, 2015-08-14 13:19:02

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

2 answer(s)
V
Victor, 2015-08-14
@v_decadence

Just write the name of the folder, then it will be ignored, regardless of location:
cache

A
Alexey Sosnovsky, 2015-08-15
@sosnovskyas

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 question

Ask a Question

731 491 924 answers to any question