~adnano/kiln

bb9c460e0fc86b41db1812145e52051f2fc5d794 — Edd Salkield 10 months ago d76c336
docs: Clarify optional template block behaviour
1 files changed, 4 insertions(+), 3 deletions(-)

M docs/kiln.1.scd
M docs/kiln.1.scd => docs/kiln.1.scd +4 -3
@@ 213,8 213,8 @@ See *TEMPLATE FUNCTIONS* for more information.
## BASE TEMPLATES

Base templates are inherited only by page and index templates. Base templates
generally define at least one block which can be customized by page and index
templates, according to the Go templating language.
generally define at least one block which can optionally be customized by page
and index templates, according to the Go templating language.

For example, the base template could contain:



@@ 225,7 225,8 @@ For example, the base template could contain:
{{ block "extra_content" . }}{{ end }}
```

The page and index templates can then customize these blocks, for example:
The page and index templates can then optionally customize these blocks, for
example:

```
{{ define "body" }}