Start of rendering partials.
This commit is contained in:
parent
ec321a17ca
commit
f240b877b8
@ -114,7 +114,7 @@ pub struct ParameterizedBlock<'a> {
|
|||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq)]
|
#[derive(Clone, Debug, PartialEq)]
|
||||||
pub struct Partial<'a> {
|
pub struct Partial<'a> {
|
||||||
name: String,
|
pub name: String,
|
||||||
params: Vec<KVPair<'a>>,
|
params: Vec<KVPair<'a>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -172,6 +172,10 @@ impl<'a> DustRenderer<'a> {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
DustTag::DTPartial(partial) => {
|
||||||
|
let rendered_content = self.render(&partial.name, breadcrumbs)?;
|
||||||
|
return Ok(rendered_content);
|
||||||
|
}
|
||||||
_ => (), // TODO: Implement the rest
|
_ => (), // TODO: Implement the rest
|
||||||
}
|
}
|
||||||
Ok("".to_owned())
|
Ok("".to_owned())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user