From adc3e6d77117d095e485ec64a93f1b64ffbf2cea Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 2 Apr 2019 22:57:33 +0200 Subject: blogc: added `-e` cli option and `listing_entry` template block --- man/blogc-template.7.ronn | 15 +++++++++++++++ man/blogc.1.ronn | 34 ++++++++++++++++++++++++---------- 2 files changed, 39 insertions(+), 10 deletions(-) (limited to 'man') diff --git a/man/blogc-template.7.ronn b/man/blogc-template.7.ronn index afa884b..cf397b7 100644 --- a/man/blogc-template.7.ronn +++ b/man/blogc-template.7.ronn @@ -87,6 +87,21 @@ that the `TITLE` variable is defined: {% endblock %} +### 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`. + +This is how a `listing_entry` block is defined: + + {% block listing_entry %} + This content will only be included when rendering a listing, but with + content provided by a single entry. + {% endblock %} + + ## TEMPLATE VARIABLES Template variables are used to provide content to templates from blogc(1) diff --git a/man/blogc.1.ronn b/man/blogc.1.ronn index 11af48c..8bcd12d 100644 --- a/man/blogc.1.ronn +++ b/man/blogc.1.ronn @@ -4,14 +4,15 @@ blogc(1) -- a blog compiler ## SYNOPSIS `blogc` [`-d`] [`-D` = ...] `-t`