Add the rest of the helpers to the recursive extract inline partials function.
This commit is contained in:
parent
3c85717952
commit
e04a0be5e7
@ -99,6 +99,65 @@ fn extract_inline_partials_from_tag<'a, 'b>(
|
|||||||
blocks.insert(&named_block.name, &named_block.contents);
|
blocks.insert(&named_block.name, &named_block.contents);
|
||||||
}
|
}
|
||||||
DustTag::DTBlock(..) => (),
|
DustTag::DTBlock(..) => (),
|
||||||
_ => (), // TODO: Implement the rest
|
DustTag::DTHelperEquals(parameterized_block) => {
|
||||||
|
match ¶meterized_block.contents {
|
||||||
|
None => (),
|
||||||
|
Some(body) => extract_inline_partials_from_body(blocks, &body),
|
||||||
|
};
|
||||||
|
match ¶meterized_block.else_contents {
|
||||||
|
None => (),
|
||||||
|
Some(body) => extract_inline_partials_from_body(blocks, &body),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
DustTag::DTHelperNotEquals(parameterized_block) => {
|
||||||
|
match ¶meterized_block.contents {
|
||||||
|
None => (),
|
||||||
|
Some(body) => extract_inline_partials_from_body(blocks, &body),
|
||||||
|
};
|
||||||
|
match ¶meterized_block.else_contents {
|
||||||
|
None => (),
|
||||||
|
Some(body) => extract_inline_partials_from_body(blocks, &body),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
DustTag::DTHelperGreaterThan(parameterized_block) => {
|
||||||
|
match ¶meterized_block.contents {
|
||||||
|
None => (),
|
||||||
|
Some(body) => extract_inline_partials_from_body(blocks, &body),
|
||||||
|
};
|
||||||
|
match ¶meterized_block.else_contents {
|
||||||
|
None => (),
|
||||||
|
Some(body) => extract_inline_partials_from_body(blocks, &body),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
DustTag::DTHelperLessThan(parameterized_block) => {
|
||||||
|
match ¶meterized_block.contents {
|
||||||
|
None => (),
|
||||||
|
Some(body) => extract_inline_partials_from_body(blocks, &body),
|
||||||
|
};
|
||||||
|
match ¶meterized_block.else_contents {
|
||||||
|
None => (),
|
||||||
|
Some(body) => extract_inline_partials_from_body(blocks, &body),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
DustTag::DTHelperGreaterThenOrEquals(parameterized_block) => {
|
||||||
|
match ¶meterized_block.contents {
|
||||||
|
None => (),
|
||||||
|
Some(body) => extract_inline_partials_from_body(blocks, &body),
|
||||||
|
};
|
||||||
|
match ¶meterized_block.else_contents {
|
||||||
|
None => (),
|
||||||
|
Some(body) => extract_inline_partials_from_body(blocks, &body),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
DustTag::DTHelperLessThenOrEquals(parameterized_block) => {
|
||||||
|
match ¶meterized_block.contents {
|
||||||
|
None => (),
|
||||||
|
Some(body) => extract_inline_partials_from_body(blocks, &body),
|
||||||
|
};
|
||||||
|
match ¶meterized_block.else_contents {
|
||||||
|
None => (),
|
||||||
|
Some(body) => extract_inline_partials_from_body(blocks, &body),
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user