feat(block): Support rendering parent block

This commit is contained in:
Kyle Fuller
2016-12-02 00:59:01 +00:00
parent 49936c36d4
commit d75db241ac
4 changed files with 13 additions and 1 deletions

View File

@@ -18,5 +18,10 @@ func testInheritence() {
let template = try environment.loadTemplate(name: "child-child.html")
try expect(try template.render()) == "Child Child Header\nChild"
}
$0.it("can inherit from a template that calls a super block") {
let template = try environment.loadTemplate(name: "child-super.html")
try expect(try template.render()) == "Header\nChild Body"
}
}
}