Finish implementing DTHelperEquals.

This commit is contained in:
Tom Alexander 2020-05-10 21:14:51 -04:00
parent 32abe41e1a
commit 137e7887a0
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -246,7 +246,21 @@ impl<'a> DustRenderer<'a> {
}, },
}; };
if left_side == right_side { if left_side == right_side {
panic!("testing"); match &parameterized_block.contents {
None => return Ok("".to_owned()),
Some(body) => {
let rendered_content = self.render_body(body, breadcrumbs, blocks)?;
return Ok(rendered_content);
}
}
} else {
match &parameterized_block.else_contents {
None => return Ok("".to_owned()),
Some(body) => {
let rendered_content = self.render_body(body, breadcrumbs, blocks)?;
return Ok(rendered_content);
}
}
} }
} }
_ => (), // TODO: Implement the rest _ => (), // TODO: Implement the rest