Finish implementing DTHelperEquals.
This commit is contained in:
parent
32abe41e1a
commit
137e7887a0
@ -246,7 +246,21 @@ impl<'a> DustRenderer<'a> {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
if left_side == right_side {
|
if left_side == right_side {
|
||||||
panic!("testing");
|
match ¶meterized_block.contents {
|
||||||
|
None => return Ok("".to_owned()),
|
||||||
|
Some(body) => {
|
||||||
|
let rendered_content = self.render_body(body, breadcrumbs, blocks)?;
|
||||||
|
return Ok(rendered_content);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
match ¶meterized_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
|
||||||
|
Loading…
Reference in New Issue
Block a user