tide-jsx 0.4.0

A safe and simple template engine with the ergonomics of JSX
Documentation
1
2
3
4
5
6
7
8
9
10
11
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>")
    }
}