Updated Handling variables in the watched URL (markdown)

master
dgtlmoon 2022-10-24 22:24:16 +02:00
rodzic 4d81fad973
commit 318bae2d76
1 zmienionych plików z 4 dodań i 0 usunięć

@ -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)
```