Skip to content

Commit

Permalink
Fix articles example in the documentation
Browse files Browse the repository at this point in the history
Context was being passed as the name param to `renderTemplate`, but it should be an actual name.
  • Loading branch information
samsonjs authored Dec 6, 2019
1 parent a229b59 commit 00fca20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 00fca20

Please sign in to comment.