Skip to content

Commit

Permalink
doc comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Sep 19, 2024
1 parent 304429f commit 8fba85e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Sources/Mustache/Library.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ public struct MustacheLibrary: Sendable {
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
/// the folder is recursive and templates in subfolders will be registered with the name `subfolder/template`.
/// - Parameter templates: Dictionary of mustache templates
/// Each template is mapped to a name which can then be used as the partial name.
/// - Parameter templates: Dictionary of mustache templates with a String key
public init(templates: [String: MustacheTemplate]) {
self.templates = templates
}
Expand Down

0 comments on commit 8fba85e

Please sign in to comment.