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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user