Skip to content

Commit

Permalink
Add ".Render" to the list of functions.
Browse files Browse the repository at this point in the history
Fixes: #1153
  • Loading branch information
jramnani authored and bep committed May 22, 2015
1 parent ee3cb5d commit 1d85922
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/content/templates/functions.md
Expand Up @@ -404,6 +404,22 @@ Looks up a content page by relative path or logical name to return the permalink

e.g. {{ ref . "about.md" }}


## Content Views

### Render
Takes a view to render the content with. The view is an alternate 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 on a piece of content, and in list context.

This example could render a piece of content using the content view located at `/layouts/_default/summary.html`:

{{ range .Data.Pages }}
{{ .Render "summary"}}
{{ end }}



## Advanced

### apply
Expand Down

0 comments on commit 1d85922

Please sign in to comment.