typenode_tprivate
An element of the tree.
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
| attrs | character(len=:) | allocatable | its attributes, as HTML |
| kids | integer | allocatabledimension(:) | its children, in order |
| tag | character(len=:) | allocatable | its tag; |
| text | character(len=:) | allocatable | its text, not yet processed |
Source
Show the code
type :: node_t
!! An element of the tree.
character(len=:), allocatable :: tag !! its tag; `code` is a code block, `raw` is finished HTML
character(len=:), allocatable :: text !! its text, not yet processed
character(len=:), allocatable :: attrs !! its attributes, as HTML
integer, allocatable :: kids(:) !! its children, in order
end type node_t