Structure
LeafConfiguration
General configuration of Leaf
struct LeafConfiguration
Overview
Sets the default View directory where templates will be looked for
Guards setting the global tagIndicator (default
#).
Topics
Initializers
init(rootDirectory: String)Initialize Leaf with the default tagIndicator#and unfound imports throwing an exceptioninit(rootDirectory: String, tagIndicator: Character)Initialize Leaf with a specific tagIndicatorinit(rootDirectory: String, tagIndicator: Character, ignoreUnfoundImports: Bool)Initialize Leaf with a specific tagIndicator and custom behaviour for unfound imports
Instance Properties
Type Properties
static var arrayFormatter: ([String]) -> Stringstatic var boolFormatter: (Bool) -> Stringstatic var dataFormatter: (Data) -> String?static var dictFormatter: ([String : String]) -> Stringstatic var doubleFormatter: (Double) -> Stringstatic var encoding: String.Encodingstatic var intFormatter: (Int) -> Stringstatic var nilFormatter: () -> Stringstatic var stringFormatter: (String) -> Stringstatic var voidFormatter: () -> StringNote:voidFormatteris never used by Leaf.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype