Get rid of the concept of NamedBlock and replace it with a ParameterizedBlock special case that does not support an else block.
This commit is contained in:
@@ -347,7 +347,7 @@ impl<'a> DustRenderer<'a> {
|
||||
None,
|
||||
&named_block.explicit_context,
|
||||
);
|
||||
return match blocks.blocks.get_block(named_block.name) {
|
||||
return match blocks.blocks.get_block(named_block.path.keys[0]) {
|
||||
None => self.render_maybe_body(
|
||||
&named_block.contents,
|
||||
new_breadcrumbs.as_ref().unwrap_or(breadcrumbs),
|
||||
|
||||
Reference in New Issue
Block a user