Install, configure, run¶
This project is open-source, published under BSD license. See License for details.
If you want to install a development environment, you should go to Contributing to diecutter documentation.
pip install diecutter
# Adapt "YOUR_TEMPLATE_DIR"! wget -O diecutter.ini --post-data "template_dir=YOUR_TEMPLATE_DIR" http://diecutter.io/api/diecutter.ini
Python path to service class that implements diecutter API. Default is diecutter.local.LocalService.
Builtin services are:
Code of the default engine to use to render files. Default is jinja2.
Code of the default engine to use to render filenames. Default is filename.
Mapping between engine codes and Python path to the template engine class. Defaults:
- django: piecutter.engines.django:DjangoEngine
- filename: piecutter.engines.filename:FilenameEngine
- jinja2: piecutter.engines.jinja:Jinja2Engine
diecutter itself does not implement engines. Engines are implemented as part of piecutter.
pserve (paster’s server) should have been installed automatically as part of diecutter’s dependencies. Use it to run the service:
pserve diecutter.ini --reload