Add / as a valid partialNameChar and use it in parse (#71)

* Add / as a valid partialNameChar and use it in parse

* maybe let's not keep "bla" in the tests
This commit is contained in:
Ralph Kühnert
2025-08-30 17:13:26 +02:00
committed by GitHub
parent 28df3156e2
commit 6df64896f4
2 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ final class PartialTests: XCTestCase {
string: """
<h2>Names</h2>
{{#names}}
{{> user}}
{{> us/er}}
{{/names}}
"""
)
@@ -33,7 +33,7 @@ final class PartialTests: XCTestCase {
"""
)
let library = MustacheLibrary(templates: ["base": template, "user": template2])
let library = MustacheLibrary(templates: ["base": template, "us/er": template2])
let object: [String: Any] = ["names": ["john", "adam", "claire"]]
XCTAssertEqual(