~repos /tide-jsx

#rust#proc-macro#jsx

git clone https://pyrossh.dev/repos/tide-jsx.git

Tide + JSX



file:

src/html.rs



use crate::Render;
use std::fmt::{Result, Write};
#[derive(Debug)]
pub struct HTML5Doctype;
impl Render for HTML5Doctype {
fn render_into<W: Write>(self, writer: &mut W) -> Result {
write!(writer, "<!DOCTYPE html>")
}
}