From 749db29d009fb077d48b0eec95b7690b1a7e0f16 Mon Sep 17 00:00:00 2001 From: Thomas Feldmann Date: Thu, 22 Feb 2024 15:38:10 +0100 Subject: [PATCH] update docs (fixes #357) --- docs/rules.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/rules.md b/docs/rules.md index ef78039c..7e4559b9 100644 --- a/docs/rules.md +++ b/docs/rules.md @@ -76,17 +76,19 @@ All your environment variables. You can access individual env vars like this: `{ `{path}` ([`pathlib.Path`](https://docs.python.org/3/library/pathlib.html#methods-and-properties))
The full path to the current file / folder on the local harddrive. -This is not available for remote locations - in this case use `fs` and `fs_path`. `{relative_path}` (`str`)
the relative path of the current file or dir. -`{now}` (`datetime`)
+`{now()}` (`datetime`)
The current datetime in the local timezone. -`{utcnow}` (`datetime`)
+`{utcnow()}` (`datetime`)
The current UTC datetime. +`{today()}` (`date`)
+Today's date. + In addition to that nearly all filters add new placeholders with information about the currently handled file / folder.