diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2019-04-02 22:57:33 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2019-04-02 22:57:33 +0200 |
commit | adc3e6d77117d095e485ec64a93f1b64ffbf2cea (patch) | |
tree | 684980dc6772818afd71cfddd14cc583285ad17e /man/blogc-template.7.ronn | |
parent | 1101d2fa0eb14baab50cc5c6cf63078930c06290 (diff) | |
download | blogc-adc3e6d77117d095e485ec64a93f1b64ffbf2cea.tar.gz blogc-adc3e6d77117d095e485ec64a93f1b64ffbf2cea.tar.bz2 blogc-adc3e6d77117d095e485ec64a93f1b64ffbf2cea.zip |
blogc: added `-e` cli option and `listing_entry` template block
Diffstat (limited to 'man/blogc-template.7.ronn')
-rw-r--r-- | man/blogc-template.7.ronn | 15 |
1 files changed, 15 insertions, 0 deletions
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: </ul> {% 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` <SOURCE>. 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) |