LeafKit Documentation

Protocol Leaf​Tag

public protocol LeafTag  

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

%53 LeafTag LeafTag Comment Comment Comment->LeafTag DateTag DateTag DateTag->LeafTag Uppercased Uppercased Uppercased->LeafTag Contains Contains Contains->LeafTag Capitalized Capitalized Capitalized->LeafTag DumpContext DumpContext DumpContext->LeafTag UnsafeUnescapedLeafTag UnsafeUnescapedLeafTag UnsafeUnescapedLeafTag->LeafTag Count Count Count->LeafTag Lowercased Lowercased Lowercased->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