macro_rules! templatify_buffer {
    ( $buffer:ident, $head_template:expr $(;$key:expr; $template:expr)* ) => { ... };
}