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/columns.rs | |
| parent | 5ce2a006b6d45d29be15e4562ae3ab4fc1b8e97c (diff) | |
Rename template to content
Diffstat (limited to 'src/library/layout/columns.rs')
| -rw-r--r-- | src/library/layout/columns.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/layout/columns.rs b/src/library/layout/columns.rs index 167e7068..9e461108 100644 --- a/src/library/layout/columns.rs +++ b/src/library/layout/columns.rs @@ -16,8 +16,8 @@ impl ColumnsNode { /// The size of the gutter space between each column. pub const GUTTER: Linear = Relative::new(0.04).into(); - fn construct(_: &mut Context, args: &mut Args) -> TypResult<Template> { - Ok(Template::block(Self { + fn construct(_: &mut Context, args: &mut Args) -> TypResult<Content> { + Ok(Content::block(Self { columns: args.expect("column count")?, child: args.expect("body")?, })) @@ -105,7 +105,7 @@ pub struct ColbreakNode; #[class] impl ColbreakNode { - fn construct(_: &mut Context, _: &mut Args) -> TypResult<Template> { - Ok(Template::Colbreak) + fn construct(_: &mut Context, _: &mut Args) -> TypResult<Content> { + Ok(Content::Colbreak) } } |
