berghain icon indicating copy to clipboard operation
berghain copied to clipboard

Templating for the challenge page

Open darix opened this issue 6 months ago • 4 comments

what would be your preferred solutions for this?

darix avatar May 29 '25 18:05 darix

Background: currently I keep a fork at https://github.com/openSUSE/berghain/commits/openSUSE-master/ which includes patches for custom branding, but it is prone to conflicts if there are upstream changes to web/, it would be nice to somehow keep custom theming in a separate repository or to have a customizable template.

tacerus avatar May 29 '25 18:05 tacerus

Do you have any ideas how to do this? I was thinking about adding some kind of env var which points to a directory containing things, but I don't have any idea how one would properly add templating to this? Maybe some kind of blocks system like Twig? This would also be needed for additional challenges because I would really like them to be separate html files which geht conditionally sent to the client.

fionera avatar May 30 '25 02:05 fionera

You can now provide a custom VITE_ENTRYPOINT Env var to provide a custom index.html. Is that enough?

fionera avatar Jun 18 '25 11:06 fionera

We still want a way to provide hooks, keeping this open

fionera avatar Aug 04 '25 10:08 fionera