doc comment update

This commit is contained in:
Adam Fowler
2024-09-19 11:28:57 +01:00
parent 304429f2fa
commit 8fba85e28c

View File

@@ -24,11 +24,10 @@ public struct MustacheLibrary: Sendable {
self.templates = [:] self.templates = [:]
} }
/// Initialize library with contents of folder. /// Initialize library with collection of templates.
/// ///
/// Each template is registered with the name of the file minus its extension. The search through /// Each template is mapped to a name which can then be used as the partial name.
/// the folder is recursive and templates in subfolders will be registered with the name `subfolder/template`. /// - Parameter templates: Dictionary of mustache templates with a String key
/// - Parameter templates: Dictionary of mustache templates
public init(templates: [String: MustacheTemplate]) { public init(templates: [String: MustacheTemplate]) {
self.templates = templates self.templates = templates
} }