This website application uses HTML documents generated by templating engine, which is an elegant way to design and compile HTML documents. Template files can be found in the /templates directory.
Jinja2 is designer-friendly template engine that also enables use of powerful filters and inline python code. For the syntax documentation please see Jinja2 Template Designer Documentation. All the files with .html extension from the [/templates) directory will be compiled using Jinja2 engine.
On the top of the builtin filters there are also extra filters that can be customized or added in [/app/view.py). These filters are:
- basename(path) - Return the base name of pathname path, see Python's os.path.basename
- timeformat(datetime) - Converts datetime object to the specified format, see [strftime)
- urlparse(url) - Parses URL into 6 components and returns specified component of the result, see urllib.parse.urlparse
Content of Wiki and news articles is compiled from templates written in the Markdown format. Wiki articles also support several extra syntax specific for authoring wiki articles. For more information on Wiki articles syntax see the Wiki documentation. Wiki articles are maintained in a separate repository, veles-wiki.
News articles are also written in a Markdown format, with most of extensions
that are supported in wiki articles [apart of figure
and infobox
) and are
stored in [/templates/news).