sablierapp / sablier

Start your containers on demand, shut them down automatically when there's no activity. Docker, Docker Swarm Mode and Kubernetes compatible.
https://sablierapp.dev/
GNU Affero General Public License v3.0
1.36k stars 46 forks source link

How to include images in custom templates #248

Open c0da opened 9 months ago

c0da commented 9 months ago

I would like to be able to include images (or css, fonts, etc) in my custom templates, but I can't figure out how to do it. Can images located in, for example, /etc/sablier/themes/mytheme/images/ be included in the theme in any way?

Thank you in advance!

acouvreur commented 9 months ago

I think the best way to avoid any security issue is to use base64. However, when loading the theme I could replace all img src with the base64.

This way you don't have to put the base64 yourself.

c0da commented 8 months ago

That would be great, @acouvreur! Right now, I'm using base64, and my html has turned into a monster 😄 Thank you in advance!

github-actions[bot] commented 7 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

acouvreur commented 7 months ago

unstale I will probably change the stale status to more than 6 months