~adnano/kiln-devel

docs: Clarify optional template block behaviour v1 APPLIED

Edd Salkield: 1
 docs: Clarify optional template block behaviour

 1 files changed, 4 insertions(+), 3 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~adnano/kiln-devel/patches/36491/mbox | git am -3
Learn more about email & git

[PATCH] docs: Clarify optional template block behaviour Export this patch

---
 docs/kiln.1.scd | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/docs/kiln.1.scd b/docs/kiln.1.scd
index 4c5dca9..6dd4f5b 100644
--- a/docs/kiln.1.scd
+++ b/docs/kiln.1.scd
@@ -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 be optionally 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" }}
-- 
2.38.1
Pushed with a minor edit. Thanks!

To git@git.sr.ht:~adnano/kiln
   d76c336..bb9c460  master -> master