rshtml_core 0.6.1

RsHtml: A Template Engine for Seamless HTML and Rust Integration.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::rshtml_file::Input;
use proc_macro2::TokenStream;
use quote::quote;
use winnow::{ModalResult, Parser, ascii::multispace0};

pub fn break_directive<'a, 'ctx>(input: &mut Input<'a, 'ctx>) -> ModalResult<TokenStream> {
    ("break", multispace0)
        .map(|(_, _)| quote! { break })
        .parse_next(input)
}