feat: Creating of templates from a string literal (#71)
This commit is contained in:
committed by
Kyle Fuller
parent
65c3052aee
commit
68e6ce3022
@@ -10,5 +10,12 @@ func testTemplate() {
|
||||
let result = try template.render(context)
|
||||
try expect(result) == "Hello World"
|
||||
}
|
||||
|
||||
$0.it("can render a template from a string literal") {
|
||||
let context = Context(dictionary: [ "name": "Kyle" ])
|
||||
let template: Template = "Hello World"
|
||||
let result = try template.render(context)
|
||||
try expect(result) == "Hello World"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user