mirror of
https://github.com/deps-rs/deps.rs.git
synced 2024-11-24 19:16:31 +00:00
Quirks Mode no more! (#169)
* Serve standard mode documents * One of these days I'll remember to run rustfmt and clippy, I promise
This commit is contained in:
parent
d89fc4929a
commit
c2f0b88b02
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,7 @@ use std::time::Duration;
|
||||||
|
|
||||||
use hyper::header::CONTENT_TYPE;
|
use hyper::header::CONTENT_TYPE;
|
||||||
use hyper::{Body, Response};
|
use hyper::{Body, Response};
|
||||||
use maud::{html, Markup, Render};
|
use maud::{html, Markup, Render, DOCTYPE};
|
||||||
|
|
||||||
pub mod error;
|
pub mod error;
|
||||||
pub mod index;
|
pub mod index;
|
||||||
|
@ -13,6 +13,7 @@ use crate::server::SELF_BASE_URL;
|
||||||
|
|
||||||
fn render_html<B: Render>(title: &str, body: B) -> Response<Body> {
|
fn render_html<B: Render>(title: &str, body: B) -> Response<Body> {
|
||||||
let rendered = html! {
|
let rendered = html! {
|
||||||
|
(DOCTYPE)
|
||||||
html {
|
html {
|
||||||
head {
|
head {
|
||||||
meta charset="utf-8";
|
meta charset="utf-8";
|
||||||
|
|
Loading…
Reference in a new issue