This is a simple WSGI server that can render Brevé templates and serve static files such as CSS and images as well. It's not meant to be a production webserver. Rather it is meant to aid developers and designers by providing an easy way to preview Brevé templates in the browser without the need to manually convert files or install a full web framework:
$ breve_server -h
Usage: breve_server [options]
Options:
-h, --help show this help message and exit
-p PORT, --port=PORT listen on port
-b ADDRESS, --bind=ADDRESS
listen on interface
-t PATH, --templates=PATH
location of templates
-d PATH, --docroot=PATH
location of static files
-i NAME, --index=NAME
default template to serve
-n NAME, --namespace=NAME
namespace to use for variables
-v PATH, --vars=PATH Python module of template variables
For example:
$ breve_server -p 9999 -t tools/breve_server/templates \
-d tools/breve_server/static -n v -v tools/breve_server/vars.py -i index
Now you can visit http://127.0.0.1:9999/ and see your Brevé template.