mkaczanowski / pastebin

Simple, fast, standalone pastebin service
MIT License
155 stars 27 forks source link

Altering index.html #17

Closed aronmgv closed 3 years ago

aronmgv commented 3 years ago

Hi,

I wanted to change the page layout from container-fluid to container but I can't seem to figure out how and from where is the static page served. I see in docs you mention they are completely served from memory, but they have to be pulled from somewhere..

Thanks, Michal

mkaczanowski commented 3 years ago

Hi,

so the template file is here: https://github.com/mkaczanowski/pastebin/blob/master/static/index.html It gets compiled into the binary as a slice of bytes / array. Then a REST HTTP call renders that template and sends the HTTP Response.

So, to modify the index.html you should look into the /static/index.html and the code that renders that template