Debian Codegraph @

docs/content/en/_common/render-vs-partial.md

raw
1 ---
2 _comment: Do not remove front matter.
3 ---
4
5 `Render` method|`partial` function
6 :--|:--
7 By default, the `Page` object is the context. You may pass an optional `CONTEXT` argument to replace it, allowing you to pass a combination of objects, slices, maps, and scalars.|You must specify the context, allowing you to pass a combination of objects, slices, maps, and scalars.
8 Hugo resolves the template automatically via the [template lookup order][], and can target any page kind, content type, logical path, language, or output format.|Hugo does not consider the current page kind, content type, logical path, language, or output format when searching for a matching template.
9 Templates may reside at any level within the `layouts` directory.|Templates must reside within the `layouts/_partials` directory.
10 There is no cached variant.|The [`partialCached`][] function is a cached variant.
11
12 [`partialCached`]: /functions/partials/includeCached/
13 [template lookup order]: /templates/lookup-order/