diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-02 16:02:23 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-02 16:02:23 +0100 |
| commit | a7b403fd742941f6b163f06876aec96729db707f (patch) | |
| tree | b5062eddbcb814713b65f59d3f59dfe7e2bcaca8 /src/library/container.rs | |
| parent | 0a1916c1e4259aff1306b26c06d4edcf0f190a3b (diff) | |
Rename `Node` to `Template`
Diffstat (limited to 'src/library/container.rs')
| -rw-r--r-- | src/library/container.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/container.rs b/src/library/container.rs index ae097a46..d2a4f481 100644 --- a/src/library/container.rs +++ b/src/library/container.rs @@ -7,11 +7,11 @@ pub struct BoxNode; #[class] impl BoxNode { - fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Node> { + fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Template> { let width = args.named("width")?; let height = args.named("height")?; let body: PackedNode = args.find().unwrap_or_default(); - Ok(Node::inline(body.sized(Spec::new(width, height)))) + Ok(Template::inline(body.sized(Spec::new(width, height)))) } } @@ -20,7 +20,7 @@ pub struct BlockNode; #[class] impl BlockNode { - fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Node> { - Ok(Node::Block(args.find().unwrap_or_default())) + fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Template> { + Ok(Template::Block(args.find().unwrap_or_default())) } } |
