LeafKit Documentation

Protocol Leaf​Tag

public protocol LeafTag  

Create custom tags by conforming to this protocol and registering them.

%69 LeafTag LeafTag Contains Contains Contains->LeafTag Comment Comment Comment->LeafTag Capitalized Capitalized Capitalized->LeafTag Count Count Count->LeafTag UnsafeUnescapedLeafTag UnsafeUnescapedLeafTag UnsafeUnescapedLeafTag->LeafTag DateTag DateTag DateTag->LeafTag Lowercased Lowercased Lowercased->LeafTag Uppercased Uppercased Uppercased->LeafTag

Types Conforming to Leaf​Tag

UnsafeUnescapedLeafTag

Tags conforming to this protocol do not get their contents HTML-escaped.

Requirements

render(_:​)

func render(_ ctx: LeafContext) throws -> LeafData