Cyrax usage¶
Main executable is cyrax
. Run it in a directory with site sources to compile
your site. It expects file .cyrax.cfg in a directory it’s started in.
Configuration¶
.cyrax.cfg
is a main site configuration file and has to be written in a
simple Configuration format. Possible configuration options used by Cyrax core:
parent_tmpl
- name of parent template for aPage
object. Defaults to_base.html
.exclude
- list of filenames (or glob patterns) to exclude from resulting site.sitecallback
- Python path to function, which takes aSite
object as an argument before traversing tree of files and can perform some modifications to behavior of Cyrax. Example.
Any other options will be set on your Site
object, which is available in any
template under name of site
.