A simple building environment to produce static HTML from Jinja templates and with assets compress managing with webassets
It try to cohabit with a Compass or Less environment, but this part is actually not ready.
Better documentation to come when this will be ready.
- rstview (this is a django app but the Django parts are not used, this module is only needed for his HTML5 parser for docutils)
This work a little bit like Django as you create a project with a settings file containing all useful global settings for building your pages and manage your assets.
Then you have to define some pages to build, you can do it directly in the settings.PAGES, or in an other module targeted in settings.PAGES_MAP. Actually, the application always import the settings module and the module targeted by PAGES_MAP from the projet directory, so you can’t store them out of your project.
Pages are allways an object optimus.pages import PageViewBase or an object that implement his method. You can inherit them to modify their behaviour.
Generally the build system has less constraint than a Framework like Django.
You can create a new project with the init command, there actually only two available template project :
- The default one, included in Optimus, you don’t have to specify anything to use it;
- Optimus-foundation that create a new project embedding all Foundation stuff, his version follow the Foundation version embedded;