1preproc(1)                  General Commands Manual                 preproc(1)
2
3
4

NAME

6       preproc
7

SYNOPSIS

9       preproc  [-h]  [--no-break-on-failure] [--debug] [-e <varname>=<value>]
10       [-s PATH] [-C path]
11

DESCRIPTION

13       Simple text preprocessor implementing a very basic templating language.
14       You  can use {{{ <bash_code> }}} tags in a text file and then pipe con‐
15       tent of that file to preproc. preproc will replace  each  of  the  tags
16       with  stdout of <bash_code> and print the final renderred result to its
17       own stdout. NOTE: You need to trust input files that you pass  to  pre‐
18       proc.  Running  preproc  on an unknown file is equivalent of running an
19       unknown script on your computer.
20

OPTIONS

22       --no-break-on-failure
23              Normally, preproc will immediately stop processing as soon as an
24              error is encountered. This switch changes the behavior.
25
26
27       --debug
28              Print each encountered tag and its env during input processing.
29
30
31       -e <varname>=<value>, --env <varname>=<value>
32              set  a  variable  into  macro  processing  environment,  e.g. -e
33              VAR=VALUE.
34
35
36       -s PATH, --source PATH
37              sources given file into macro  processing  environment.  May  be
38              used multiple times.
39
40
41       -C path
42              Directory to operate in.
43
44

AUTHORS

46       preproc was written by clime <clime@fedoraproject.org>.
47

DISTRIBUTION

49       The    latest    version    of   preproc   may   be   downloaded   from
50https://pagure.io/rpkg-util/blob/master/f/preproc
51
52
53
54                                    Manual                          preproc(1)
Impressum