Switch to Conche and Spectre

This commit is contained in:
Kyle Fuller
2015-10-22 11:49:32 -07:00
parent 6464b3170a
commit d5acc7298c
36 changed files with 577 additions and 1492 deletions

View File

@@ -0,0 +1,15 @@
import Spectre
import Stencil
import PathKit
describe("Inheritence") {
let path = Path(__FILE__) + ".." + ".." + "StencilSpecs" + "fixtures"
let loader = TemplateLoader(paths: [path])
$0.it("can inherit from another template") {
let context = Context(dictionary: ["loader": loader])
let template = loader.loadTemplate("child.html")
try expect(try template?.render(context)) == "Header\nChild"
}
}