webringer 1.0.3

A bin/lib crate for a webring site
Documentation
//! This module handles the site functions
//! Where all the [axum] handlers etc live

use askama::Template;
use axum::response::Html;

pub mod admin;
pub mod join;
pub mod leave;
pub mod login;
pub mod ring;

#[derive(askama::Template)]
#[template(path = "index.html")]
pub struct IndexTemplate {}

/// Gets the index of the site
///
/// # Panics
/// Panics if there is a problem in [`Template::render`]
pub async fn index() -> Html<String> {
	Html(IndexTemplate {}.render().expect("Problem rendering index template"))
}