preproc - Man Page
Synopsis
preproc [-h] [--no-break-on-failure] [--debug] [-e <varname>=<value>] [-s PATH] [-C path]
Description
Simple text preprocessor implementing a very basic templating language. You can use {{{ <bash_code> }}} tags in a text file and then pipe content of that file to preproc. preproc will replace each of the tags with stdout of <bash_code> and print the final renderred result to its own stdout. NOTE: You need to trust input files that you pass to preproc. Running preproc on an unknown file is equivalent of running an unknown script on your computer.
Options
- --no-break-on-failure
Normally, preproc will immediately stop processing as soon as an error is encountered. This switch changes the behavior.
- --debug
Print each encountered tag and its env during input processing.
- -e <varname>=<value>, --env <varname>=<value>
set a variable into macro processing environment, e.g. -e VAR=VALUE.
- -s PATH, --source PATH
sources given file into macro processing environment. May be used multiple times.
- -C path
Directory to operate in.
Authors
preproc was written by clime <clime@fedoraproject.org>.
Distribution
The latest version of preproc may be downloaded from https://pagure.io/rpkg-util/blob/master/f/preproc