Closed blackfyre closed 10 months ago
Template modifications in artist.html
The core structure of the artist.html
file was modified by replacing a <main>
element with a <section>
element. Additionally, a link (anchor tag) was added to the footer of a card which should facilitate loading new data without refreshing the entire page.
Addition of artwork.html
A new file, artwork.html
, was added to our system. This HTML template includes a specified title and body, allowing for the seamless creation of new artwork pages within our application.
Added artwork route handler in artist.go
A new mechanism (or "handler") was developed within artist.go
to manage a specific user journey — navigating to artists/:name/:awid
. This handler is responsible for fetching required data (either from a faster temporary storage in memory or a slower permanent storage on disk) and subsequently generating the desired HTML page for the user.
HTML Response enhancements for new handler
The HTML response created by our new handler also includes a special HX-Push-Url
header. This addition allows us to change the URL in the user's browser without a full-page reload, streamlining the navigation experience on our website.
The missing link 😄