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 321bac2 commit 7125103
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/content/templates/functions.md
Expand Up @@ -453,6 +453,22 @@ Takes a string and sanitizes it for usage in URLs, converts spaces to "-".
e.g. `<a href="/tags/{{ . | urlize }}">{{ . }}</a>`



## 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 7125103

Please sign in to comment.