librelist archives

« back to archive

Announcing ducttape

Announcing ducttape

From:
Mir Nazim
Date:
2013-06-27 @ 08:40
Hi,

ducttape -  a simple utility for generating static html pages from
Django templates without need to setup full django project.

I created it to scratch a personal itch - using django templates for
prototyping HTML apps.

Install with pip
    pip install git+https://github.com/mnazim/ducttape.git

Then:

    $ mkdir ducttape-demo
    $ cd ducttape-demo
    $ ducttape init

    $ ls
    context  output  static  templates

Templates directory contains templates; context directory contains
context files in JSON; static contains js,css,img, etc; output is
where all the generated html is spitted out. properly mapped
STATIC_URL and MEDIA_URL are also available to templates

Add templates, context and then:

    $ ducttape watch

Check out the README.rst for details.