shithub: hugo

Download patch

ref: 7125103b1e7fedfe29516cee9ea70ef22d65aca7
parent: 321bac2fc2f6cdaa93e8a405dc63f1dc794771c5
author: Jeff Ramnani <[email protected]>
date: Fri May 22 07:43:29 EDT 2015

Add ".Render" to the list of functions.

Fixes: #1153

--- a/docs/content/templates/functions.md
+++ b/docs/content/templates/functions.md
@@ -453,6 +453,22 @@
 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