Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wrouesnel committed Sep 26, 2022
1 parent d9acc33 commit 5e3f74c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,14 @@ to support this mode.

#### Delete substrings in output filenames when `--directory-mode` enabled

You can use the optional flag `--dm-filename-substr-del` to delete substrings that are present in output filenames
when running `p2` with `--directory-mode` enabled.

This is useful for cases where your templates have asuffix e.g `.tmpl`, `.template` that you want removed once the template has been rendered. For example, the output file for a template named `mytemplate.tmpl.json` will become `mytemplate.json`.
You can use the optional flag `--directory-mode-filename-substr-del` to delete
substrings that are present in output filenames when running `p2` with
`--directory-mode` enabled.

This is useful for cases where your templates have asuffix e.g `.tmpl`,
`.template` that you want removed once the template has been rendered. For
example, the output file for a template named `mytemplate.tmpl.json` will
become `mytemplate.json`.

#### Side-effectful filters
`p2` allows enabling a suite of non-standard pongo2 filters which have
Expand Down

0 comments on commit 5e3f74c

Please sign in to comment.