This plugin allows to use external commands to modify documents during their computation
Usage:
Actions are defined in the .stog/config-extern
configuration file. Each action
has a name and associates a list of document types and a command.
Here is an example of such a file:
The dummy example above defines a new action my-action, with
a command cat that will be applied on documents of type
post or page. For each document matching the
type condition, the command will be given on stdin the current XML content
of the document and must output the result (valid XML) on stdout.
We also have to indicate when this action will take place. This is done
in the .stog/config file, in variable levels:
Here, my-action will be applied at level 1000. The same
action can be applied in various levels. And of course, several actions can
be defined, with different commands and applied to different types of documents.