Permalink
Please sign in to comment.
Showing
with
26 additions
and 4 deletions.
- +1 −1 MANIFEST.in
- +24 −2 README.md
- +1 −1 static/VERSION
@@ -1 +1 @@ | |||
include */VERSION | |||
include */VERSION README.md requirements.txt entrypoints.conf |
@@ -1,3 +1,25 @@ | |||
# static - A very simple WSGI way to serve static and dynamic content. | |||
# static | |||
|
|||
Serve static or templated content via WSGI or stand-alone. | |||
|
|||
Install Static | |||
|
|||
$ pip install static | |||
|
|||
Serve up some content: | |||
|
|||
$ static localhost 9999 static-content/ | |||
|
|||
Or in the context of a WSGI application: | |||
|
|||
```python | |||
import static | |||
wsgi_app = static.Cling('/var/www') | |||
``` | |||
|
|||
You can also use Python template strings, Moustache templates or | |||
easily roll your own templating plugin. See the tests and source | |||
code for examples. | |||
|
|||
Pull requests welcome. Happy hacking. | |||
|
|||
See docstrings of static module for details. |
@@ -1 +1 @@ | |||
1.0.0 | |||
1.0.1 |
0 comments on commit
8cb72b5