diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-14 10:09:44 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-14 10:09:44 +0100 |
| commit | 9ba4d2c134479aad876a0e2ac4cd1622a353109e (patch) | |
| tree | a94e0e6ae53a1ba440e869fca26cc2ea0b179057 /library/src/layout/hide.rs | |
| parent | 4c73456fc1f5df8ebb3a89d9db657c3c54624d66 (diff) | |
New macro setup
Diffstat (limited to 'library/src/layout/hide.rs')
| -rw-r--r-- | library/src/layout/hide.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/src/layout/hide.rs b/library/src/layout/hide.rs index f6ce21d5..1318b7ed 100644 --- a/library/src/layout/hide.rs +++ b/library/src/layout/hide.rs @@ -1,10 +1,12 @@ use crate::prelude::*; /// Hide content without affecting layout. +#[func] +#[capable(Layout, Inline)] #[derive(Debug, Hash)] pub struct HideNode(pub Content); -#[node(Layout, Inline)] +#[node] impl HideNode { fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> { Ok(Self(args.expect("body")?).pack()) |
