tangled
alpha
login
or
join now
cherry.computer
/
website
My personal site
cherry.computer
htmx
tailwind
axum
askama
0
fork
atom
overview
issues
pulls
pipelines
refactor: organise template modules into directory
cherry.computer
3 months ago
33078661
1432094d
verified
This commit was signed with the committer's
known signature
.
cherry.computer
SSH Key Fingerprint:
SHA256:SIA77Ll0IpMb8Xd3RtaGT+PBIGIePhJJg5W2r6Td7cc=
+11
-8
5 changed files
expand all
collapse all
unified
split
server
src
main.rs
templates
am_auth_flow.rs
index.rs
media.rs
templates.rs
server/src/am_auth_flow.rs
server/src/templates/am_auth_flow.rs
server/src/index.rs
server/src/templates/index.rs
+7
-8
server/src/main.rs
···
1
1
-
#[cfg(debug_assertions)]
2
2
-
mod am_auth_flow;
3
3
-
mod index;
4
4
-
mod media;
5
1
mod scrapers;
2
2
+
mod templates;
6
3
7
4
use std::{net::SocketAddr, sync::Arc};
8
5
6
6
+
use crate::scrapers::{MediaType, apple_music::AppleMusicClient};
9
7
#[cfg(debug_assertions)]
10
10
-
use crate::am_auth_flow::AuthFlowTemplate;
11
11
-
use crate::index::{IndexOptions, RootTemplate};
12
12
-
use crate::media::{MediaTemplate, fetch_media_of_type};
13
13
-
use crate::scrapers::{MediaType, apple_music::AppleMusicClient};
8
8
+
use crate::templates::am_auth_flow::AuthFlowTemplate;
9
9
+
use crate::templates::{
10
10
+
index::{IndexOptions, RootTemplate},
11
11
+
media::{MediaTemplate, fetch_media_of_type},
12
12
+
};
14
13
15
14
use askama::Template;
16
15
use axum::{
server/src/media.rs
server/src/templates/media.rs
+4
server/src/templates.rs
···
1
1
+
#[cfg(debug_assertions)]
2
2
+
pub mod am_auth_flow;
3
3
+
pub mod index;
4
4
+
pub mod media;