Templates as a service
Python HTML Makefile
Latest commit e43b062 May 4, 2016 @benoitbryon benoitbryon Merge pull request #114 from diecutter/readthedocs.io
readthedocs project subdomains moved from .org to .io.
Permalink
Failed to load latest commit information.
demo
diecutter Refs #107, refs #108 - Moved tests outside diecutter package ; moved … Jul 6, 2014
docs Update readthedocs links. Apr 28, 2016
etc Add example configuration for cookiecutter and github. Mar 6, 2014
tests Refs #107, refs #108 - Moved tests outside diecutter package ; moved … Jul 6, 2014
.gitignore Refactoring to use piecutter. Apr 9, 2014
.travis.yml tox runs tests. Feb 27, 2014
AUTHORS Added myself to authors Jul 18, 2013
CHANGELOG
CONTRIBUTING.rst Fixed some URLs in documentation. Reviewed contributor guide. Feb 27, 2014
INSTALL
LICENSE Changed license: from WTFPL to BSD. Feb 15, 2013
MANIFEST.in Fixed some URLs in documentation. Reviewed contributor guide. Feb 27, 2014
Makefile
README.rst
VERSION Back to development: 0.8 Jul 10, 2014
setup.py Reviewed documentation about ecosystem (piecutter, template index) an… Jul 7, 2014
tests-requirements.pip Refs #92 - Simplified requirements, since some requirements moved to … Apr 9, 2014
tox.ini

README.rst

diecutter

diecutter is a web application around file generation:

  • templates are the resources ;
  • the most common operation is to POST data to templates in order to retrieve generated files.

diecutter can render single files and directories. Directories are rendered as archives.

Example

GET raw content of a template:

$ curl -X GET http://diecutter.io/api/greetings.txt
{{ greetings|default('Hello') }} {{ name }}!

POST data to the template and retrieve generated content:

$ curl -X POST -d name=world http://diecutter.io/api/greetings.txt
Hello world!

Project status

Although under active development, diecutter already works, so give it a try!.

Check milestones and vision for details about the future.

Also notice that diecutter is part of an ecosystem:

  • piecutter is the core Python API. It provides stuff like template engines or template loaders.
  • diecutter implements a WSGI application and REST interface on top of piecutter.
  • diecutter-index is a proof-of-concept project for an online template registry.
  • http://diecutter.io is the SAAS platform running diecutter ecosystem.

See also alternatives and related projects section in documentation.

Resources