~adnano/kiln-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] docs: Clarify optional template block behaviour

Details
Message ID
<20221031163329.4149-1-edd@salkield.uk>
DKIM signature
missing
Download raw message
Patch: +4 -3
---
 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
Details
Message ID
<CO09QRN6G0Q8.NF5RFDZU1PE4@nitro>
In-Reply-To
<20221031163329.4149-1-edd@salkield.uk> (view parent)
DKIM signature
missing
Download raw message
Pushed with a minor edit. Thanks!

To git@git.sr.ht:~adnano/kiln
   d76c336..bb9c460  master -> master
Reply to thread Export thread (mbox)