seperate the hyperlegible font face out into a template and organize the crate structure #8

Merged
mossfet merged 4 commits from font-style into main 2023-07-13 13:09:35 +00:00
Member

the hyperlegible font-face style code was inside the index.html file so i could replace the filenames pointing to the fonts with the template engine but i figured out you can just use a css file as a template, with escaping turned off, to replace the filenames with the jinja syntax.

i also moved the asset code into its own crate.

the hyperlegible font-face style code was inside the index.html file so i could replace the filenames pointing to the fonts with the template engine but i figured out you can just use a css file as a template, with escaping turned off, to replace the filenames with the jinja syntax. i also moved the asset code into its own crate.
Fries added 4 commits 2023-07-13 08:19:24 +00:00
this should make the code cleaner if we need to add more crates as it
can get messy if we keep stacking crates in the root directory
this lets me make the base html code cleaner and it lets me keep using a
seperate file for font-face stuff so the style.css is cleaner. this is
implemented by using the askama template engine with the same syntax
that was used in the style tag in base.html, but i render the template
to text instead of directly to a rocket responder and i hash it with the
sha2 crate. this hashing should only run once, at startup, so it
shouldn't be much of a performance hit.
this should seperate out the asset handling code, which was practically
its own module inside the main codebase, into a little crate.
mossfet merged commit 075dd95c03 into main 2023-07-13 13:09:35 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Solarpunk/meowy-webring#8
No description provided.