From 65dfa9d59943f676b554248b00445f20ac5e5235 Mon Sep 17 00:00:00 2001 From: Joe Kaufeld Date: Tue, 17 Sep 2024 14:34:14 -0400 Subject: [PATCH] :memo: add version markers --- docs/routes.md | 2 ++ docs/static_files.md | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/docs/routes.md b/docs/routes.md index a4386e6..d284964 100644 --- a/docs/routes.md +++ b/docs/routes.md @@ -116,6 +116,8 @@ In this case, a valid URL might be `/example/3/james`, and both sections will be The `path` option is special; this is used when you want to capture everything after the slash. For example: +> New in 1.2.0! + ```python @app.route("/example/") def example(request, rest): diff --git a/docs/static_files.md b/docs/static_files.md index f02a4fb..9ee1d73 100644 --- a/docs/static_files.md +++ b/docs/static_files.md @@ -39,12 +39,16 @@ This is the URL that Spiderweb will use to serve static files. In the example ab ## `debug` +> New in 1.2.0! + > default: `False` This is a boolean that tells Spiderweb whether it is running in debug mode or not. Among other things, it's used in serving static files. If this value is not included, it defaults to False, and Spiderweb will not serve static files. For local development, you will want to set it to True. ## Linking to static files +> New in 1.2.0! + There is a tag in the templates that you can use to link to static files. This tag will automatically generate the correct URL for the file based on the `static_url` attribute you set in the router. ```html