From 318bae2d76c219b37808ab5ce0343c2425477854 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 24 Oct 2022 22:24:16 +0200 Subject: [PATCH] Updated Handling variables in the watched URL (markdown) --- Handling-variables-in-the-watched-URL.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Handling-variables-in-the-watched-URL.md b/Handling-variables-in-the-watched-URL.md index 33042ee..4fe2a88 100644 --- a/Handling-variables-in-the-watched-URL.md +++ b/Handling-variables-in-the-watched-URL.md @@ -1,4 +1,8 @@ +In https://github.com/dgtlmoon/changedetection.io/pull/1057 we add the possibility to use Jinja2 templating in the URL, using the [Jinja2 time extension](https://pypi.org/project/jinja2-time/), you can specify a date (such as the current date according to your timezone) or a relative date (for example, the date yesterday and the date in one month) + +Perfect for websites that need to search between dates, for example. + Sometimes you need to insert the current date into the requested URL, this can be done by using the _Jinja2_ template syntax, you can also use any other Jinja2 syntax (for example, if the day is a tuesday, then insert the word "foobar" or something) ```