From ac8e82c3a11f79082e9ed5f5f9c654c8f32b2ebc Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 27 Mar 2019 20:58:54 +0100 Subject: blogc: dump source file variables as well as global variables --- man/blogc.1.ronn | 12 +++++++++--- src/blogc/main.c | 15 ++++++++++----- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/man/blogc.1.ronn b/man/blogc.1.ronn index 96b7874..eb64420 100644 --- a/man/blogc.1.ronn +++ b/man/blogc.1.ronn @@ -58,9 +58,15 @@ designed to be used with make(1). See blogc-template(7) for details. * `-p` : - Show the value of a global configuration parameter right after the source - parsing and exits. This is useful to get parameters for your `Makefile`, - like the last page when using pagination, see blogc-pagination(7) for details. + Show the value of a variable right after the source parsing and exits. This + is useful to get parameters for your `Makefile`, like the last page when + implementing pagination, see blogc-pagination(7) for details. This can be + also useful to dump variables defined in a source file without parsing it + manually, if called without `-l`. Please note that variables generated by + blogc during rendering process, like `BLOGC_RUSAGE_MEMORY` are not available + because blogc will exit without rendering any content when called with this + option, and will not even require a template, but variables generated during + parsing process, like `CONTENT` are available. * `-t`