[support] How to check wether a file exists?
Opened this issue · 1 comments
Deleted user commented
I have this:
<img class="img-fluid" src="/media/3-acts/{{ .Other.Identity }}/shot.png" alt="preview image" style="width: 100%;">
How can I check in template if the file /media/3-acts/{{ .Other.Identity }}/shot.png
exists or not?
Thanks,
piranha commented
I don't think that's possible, but adding another template function shouldn't be hard.