Skip to main content

A simple building environment to produce static HTML from Jinja templates and with assets compress managing with webassets

Project description

Introduction

A simple building environment to produce static HTML from Jinja2 templates and with assets compress managing with webassets.

The environment should bring all needed stuff and a script to build static website with benefit of templating with Jinja2 and compressed assets (for production) 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.

Requires

  • webassets

  • Jinja2

  • argh

  • argparse

  • compressinja

  • rstview (this is a django app but the Django parts are not used, this module is only needed for his HTML5 parser for docutils)

  • watchdog

And for webassets, you will need some compressor for your assets, the better and easiest is to install yuicompressor with pip, this is a dummy Python module to automatically install the real yui-compressor that is a great choice to compress CSS and Javascript assets.

Usage

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Optimus-0.4.4.2.tar.gz (12.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page