From 8404096582103dccb8885b0c404f0a756685e913 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 22 Apr 2020 02:06:37 +0200 Subject: blogc: allow passing multiple -e options --- man/blogc-template.7.ronn | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'man/blogc-template.7.ronn') diff --git a/man/blogc-template.7.ronn b/man/blogc-template.7.ronn index cf397b7..f418654 100644 --- a/man/blogc-template.7.ronn +++ b/man/blogc-template.7.ronn @@ -74,7 +74,7 @@ This is how a `listing_once` block is defined: will be included only once. {% endblock %} -This is a 'real life' usage example of a `listing_once` block, supposing +This is a 'real world' usage example of a `listing_once` block, supposing that the `TITLE` variable is defined: {% block listing_once %} @@ -90,9 +90,9 @@ that the `TITLE` variable is defined: ### listing_entry block This block is identical to the `entry` block, but its content is included in -the output file only when blogc(1) is called with `-l` and `-e` . The -variables available in the block are provided by the source file provided -using `-e`. +the output file only when blogc(1) is called with `-l` and `-e` +options. The variables available in the block are provided by the source +file provided using `-e` option. This is how a `listing_entry` block is defined: @@ -101,6 +101,14 @@ This is how a `listing_entry` block is defined: content provided by a single entry. {% endblock %} +When multiple `listing_entry` blocks are defined, blogc(1) should be called +with multiple `-e` options. If a `listing_entry` block does not have +a corresponding `-e` option, or if its value is an empty string, +the content of the `listing_entry` block is not included. + +`listing_entry` blocks inside iterator are evaluated as multiple blocks and +also require multiple `-e` options. blogc(1) won't use the same +source for every iteration. ## TEMPLATE VARIABLES -- cgit v1.2.3-18-g5258