-
Hi all, I'm wondering how exactly I can overwrite html templates. I just need to change the file footer.html Settings:
Docker-compose:
I added the file in /etc/custom-files/templates/fragment/footer.html but no changes (after restart container) and |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
So file is located at meaning it would be template directory plus fragments/footer.html so should be /customFiles/templates/ + fragments/footer.html I see your volume mapping as only static folder
do you have one for the templates as well? Static is only for files in you should have it as then add |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
So file is located at
https://github.com/Stirling-Tools/Stirling-PDF/blob/main/src/main/resources/templates/fragments/footer.html
meaning it would be template directory plus fragments/footer.html
so should be /customFiles/templates/ + fragments/footer.html
I see your volume mapping as only static folder
do you have one for the templates as well?
Static is only for files in
https://github.com/Stirling-Tools/Stirling-PDF/tree/main/src/main/resources/static
you should have it as
- /etc/stirling/customFiles/:/customFiles/
then add
/etc/stirling/customFiles/templates/fragments/footer.html