From 00fca208a2ca312fca9b6a2f710f49d3521ae4f1 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Fri, 6 Dec 2019 08:05:16 -0800 Subject: [PATCH] Fix articles example in the documentation Context was being passed as the name param to `renderTemplate`, but it should be an actual name. --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 9d1987ef..481f8a5d 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -32,7 +32,7 @@ feel right at home with Stencil. ] 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)