📝 add version markers

This commit is contained in:
Joe Kaufeld 2024-09-17 14:34:14 -04:00
parent c19d34f336
commit 65dfa9d599
2 changed files with 6 additions and 0 deletions

View File

@ -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: 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 ```python
@app.route("/example/<path:rest>") @app.route("/example/<path:rest>")
def example(request, rest): def example(request, rest):

View File

@ -39,12 +39,16 @@ This is the URL that Spiderweb will use to serve static files. In the example ab
## `debug` ## `debug`
> New in 1.2.0!
> default: `False` > 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. 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 ## 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. 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 ```html