fn write_footer(out: &mut Buffer, playground_button: Option<&str>)