fn parse_extends_include(pair: Pair<Rule>) -> (WS, String) {
    let mut ws = WS::default();
    let mut file = None;

    for p in pair.into_inner() {
        match p.as_rule() {
            Rule::tag_start => {
                ws.left = p.into_span().as_str() == "{%-";
            }
            Rule::string => file = Some(replace_string_markers(p.into_span().as_str())),
            Rule::tag_end => {
                ws.right = p.into_span().as_str() == "-%}";
            }
            _ => unreachable!(),
        };
    }

    (ws, file.unwrap())
}
/// `extends` and `include` have the same structure so only way fn to parse them both
`extends` and `include` have the same structure so only way fn to parse them both
` extends ` and ` include ` have the same structure so only way fn to parse them both
fn parse_extends_include(pair: Pair<Rule>) -> (WS, String) {
    let mut ws = WS::default();
    let mut file = None;
    for p in pair.into_inner() {
        match p.as_rule() {
            Rule::tag_start => {
                ws.left = p.into_span().as_str() == "{%-";
            }
            Rule::string => file = Some(replace_string_markers(p.into_span().as_str())),
            Rule::tag_end => {
                ws.right = p.into_span().as_str() == "-%}";
            }
            _ => unreachable!(),
        };
    }
    (ws, file.unwrap())
}
fn parse_extends_include ( pair : Pair < Rule > ) -> ( WS , String ) { let mut ws = WS :: default ( ) ; let mut file = None ; for p in pair . into_inner ( ) { match p . as_rule ( ) { Rule :: tag_start => { ws . left = p . into_span ( ) . as_str ( ) == " " ; } Rule :: string => file = Some ( replace_string_markers ( p . into_span ( ) . as_str ( ) ) ) , Rule :: tag_end => { ws . right = p . into_span ( ) . as_str ( ) == " " ; } _ => unreachable ! ( ) , } ; } ( ws , file . unwrap ( ) ) }
`extends` and `include` have the same structure so only way fn to parse them both
` extends ` and ` include ` have the same structure so only way fn to parse them both
pair
Pair<Rule>
pair
Pair<Rule>