Renamed the new partial implementation to the old partial name.
This commit is contained in:
@@ -94,7 +94,7 @@ fn extract_inline_partials_from_tag<'a, 'b>(
|
||||
Some(body) => extract_inline_partials_from_body(blocks, &body),
|
||||
};
|
||||
}
|
||||
DustTag::DTNewPartial(..) => (),
|
||||
DustTag::DTPartial(..) => (),
|
||||
DustTag::DTInlinePartial(named_block) => {
|
||||
blocks.insert(&named_block.name, &named_block.contents);
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ impl<'a> DustRenderer<'a> {
|
||||
self.render_maybe_body(&container.contents, breadcrumbs, blocks)
|
||||
};
|
||||
}
|
||||
DustTag::DTNewPartial(partial) => {
|
||||
DustTag::DTPartial(partial) => {
|
||||
let partial_name = self.render_partial_name(&partial.name, breadcrumbs, blocks)?;
|
||||
if partial.params.is_empty() {
|
||||
let rendered_content =
|
||||
|
||||
Reference in New Issue
Block a user