8cd215cdc2
Use static files handling from updated ructe rather than local handling, and use rsass rather than sass-rs and sass-sys. Static files are now kept in the binary (no more need to access the build directory at runtime). Also, there is an admin command to save the static files to a directory, for the benefit of fronting web servers and backwards compatibility.
21 lines
451 B
HTML
21 lines
451 B
HTML
@use ::Link;
|
|
@use templates::head;
|
|
@use templates::statics::style_css;
|
|
|
|
@(title: &str, lpath: Vec<Link>, user: Option<String>, content: Content)
|
|
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>@title</title>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
<link rel="stylesheet" href="/static/@style_css.name" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
@:head(lpath, user)
|
|
<h1>@title</h1>
|
|
|
|
@:content()
|
|
</body>
|
|
</html>
|