diff options
Diffstat (limited to 'docs/content/en/functions/Render.md')
-rw-r--r-- | docs/content/en/functions/Render.md | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/docs/content/en/functions/Render.md b/docs/content/en/functions/Render.md deleted file mode 100644 index 02567845f..000000000 --- a/docs/content/en/functions/Render.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -title: .Render -description: Takes a view to apply when rendering content. -categories: [functions] -keywords: [] -menu: - docs: - parent: functions -function: - aliases: [] - returnType: template.HTML - signatures: [.Render LAYOUT] -relatedFunctions: [] ---- - -The view is an alternative layout and should be a file name that points to a template in one of the locations specified in the documentation for [Content Views](/templates/views). - -This function is only available when applied to a single piece of content within a [list context]. - -This example could render a piece of content using the content view located at `/layouts/_default/summary.html`: - -```go-html-template -{{ range .Pages }} - {{ .Render "summary" }} -{{ end }} -``` - -[list context]: /templates/lists/ |