Fix articles example in the documentation

Context was being passed as the name param to `renderTemplate`, but it should be an actual name.
This commit is contained in:
Sami Samhuri
2019-12-06 08:05:16 -08:00
committed by GitHub
parent a229b59d3d
commit 00fca208a2

View File

@@ -32,7 +32,7 @@ feel right at home with Stencil.
] ]
let environment = Environment(loader: FileSystemLoader(paths: ["templates/"]) let environment = Environment(loader: FileSystemLoader(paths: ["templates/"])
let rendered = try environment.renderTemplate(name: context) let rendered = try environment.renderTemplate(name: "articles.html", context: context)
print(rendered) print(rendered)