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/meta/document.rs | |
| parent | 4c73456fc1f5df8ebb3a89d9db657c3c54624d66 (diff) | |
New macro setup
Diffstat (limited to 'library/src/meta/document.rs')
| -rw-r--r-- | library/src/meta/document.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/src/meta/document.rs b/library/src/meta/document.rs index fbb62b6b..1dae4a2a 100644 --- a/library/src/meta/document.rs +++ b/library/src/meta/document.rs @@ -2,10 +2,12 @@ use crate::layout::{LayoutRoot, PageNode}; use crate::prelude::*; /// The root node that represents a full document. +#[func] +#[capable(LayoutRoot)] #[derive(Hash)] pub struct DocumentNode(pub StyleVec<PageNode>); -#[node(LayoutRoot)] +#[node] impl DocumentNode { /// The document's title. #[property(referenced)] |
