priyatam / pie

A minimalist staticsite builder and router
Other
5 stars 0 forks source link

Pie

A minimalist static site generator and router, optimized for Python and SammyJs.

Workflow

Write plaintext content, manipulate it with Python, design templates in Bootstrap and Mustache, compile everything into json and let an embedded router (SammyJs) build on entire site from json.

Finally, push the site to S3 with a single command.

For more info, see sample site (generated by Frozen Pie).

Setup

$ git clone https://github.com/facjure/pie.git
$ cd pie
$ virtualenv pie
$ cd pie
$ chmod 755 pie.py

Run

$ pie.py --help

usage: pie.py [-h] [-m] [-d [DEPLOY]] root contents

Frozen Pie: A minimalist static site generator and router.

positional arguments:
root                  path to root project folder containing templates,
                        styles, lambdas, and config.yml
contents              path to contents folder containing markdown, plaintext

optional arguments:
-h, --help            show this help message and exit
-m, --minify          minify
-d [DEPLOY], --deploy [DEPLOY]
                        s3

Tests

$ py.test pie-test/tests.py

Status

Alpha, v0.5.

Currently, pie supports Poetroid prototype and a few personal websites.

Copyright & License

Copyright (c) Priyatam Mudivarti, 2014 under the Apache 2.0 License.

See LICENSE for more details.