diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-03-11 12:59:55 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-03-11 23:36:06 +0100 |
| commit | 5ac7eb3860ebd3247f6486c227e816894cb8fd91 (patch) | |
| tree | a29a868c681c7de39f15f2d9d3f031db1861b90a /src/library/layout/container.rs | |
| parent | 5ce2a006b6d45d29be15e4562ae3ab4fc1b8e97c (diff) | |
Rename template to content
Diffstat (limited to 'src/library/layout/container.rs')
| -rw-r--r-- | src/library/layout/container.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/layout/container.rs b/src/library/layout/container.rs index 55579878..f7f4017c 100644 --- a/src/library/layout/container.rs +++ b/src/library/layout/container.rs @@ -5,11 +5,11 @@ pub struct BoxNode; #[class] impl BoxNode { - fn construct(_: &mut Context, args: &mut Args) -> TypResult<Template> { + fn construct(_: &mut Context, args: &mut Args) -> TypResult<Content> { let width = args.named("width")?; let height = args.named("height")?; let body: LayoutNode = args.find()?.unwrap_or_default(); - Ok(Template::inline(body.sized(Spec::new(width, height)))) + Ok(Content::inline(body.sized(Spec::new(width, height)))) } } @@ -18,7 +18,7 @@ pub struct BlockNode; #[class] impl BlockNode { - fn construct(_: &mut Context, args: &mut Args) -> TypResult<Template> { - Ok(Template::Block(args.find()?.unwrap_or_default())) + fn construct(_: &mut Context, args: &mut Args) -> TypResult<Content> { + Ok(Content::Block(args.find()?.unwrap_or_default())) } } |
