feat: Moves core functionality into it's own library.
This commit is contained in:
16
Sources/CliDocCore/Nodes/Group.swift
Normal file
16
Sources/CliDocCore/Nodes/Group.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
public struct Group<Content: TextNode>: TextNode {
|
||||
@usableFromInline
|
||||
var content: Content
|
||||
|
||||
@inlinable
|
||||
public init(
|
||||
@TextBuilder content: () -> Content
|
||||
) {
|
||||
self.content = content()
|
||||
}
|
||||
|
||||
@inlinable
|
||||
public var body: some TextNode {
|
||||
content
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user