Skip to main content

Templates as a service

Project description

#########
diecutter
#########

.. raw:: html

<a alt="Build status" href="http://badge.fury.io/py/diecutter"><img src="https://badge.fury.io/py/diecutter.png"></a>
<a href="https://travis-ci.org/diecutter/diecutter"><img src="https://travis-ci.org/diecutter/diecutter.png?branch=master"></a>
<a href="https://pypi.python.org/pypi/diecutter"><img src="https://pypip.in/d/diecutter/badge.png"></a>

Templates as a service.

``diecutter`` exposes an API where you manage templates as resources.
The most common operation is to **POST data to templates in order to retrieve
generated files**.

Files and directories are supported. Directories are rendered as archives.

.. note::

Diecutter is under active development: some (killer) features have not been
implemented yet, or they are not mature.
Check `milestones <https://github.com/diecutter/diecutter/issues/milestones>`_
and `vision <https://diecutter.readthedocs.org/en/latest/about/vision.html>`_
for details.

That said, features documented below actually work, so **give it a try!**


*******
Example
*******

GET raw content of a template:

.. code-block:: text

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

POST data to the template and retrieve generated content:

.. code-block:: text

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


*********
Resources
*********

* Online demo: http://diecutter.io
* Documentation: http://diecutter.readthedocs.org
* PyPI page: http://pypi.python.org/pypi/diecutter
* Bugtracker: https://github.com/diecutter/diecutter/issues
* Changelog: https://diecutter.readthedocs.org/en/latest/about/changelog.html
* Roadmap: https://github.com/diecutter/diecutter/issues/milestones
* Code repository: https://github.com/diecutter/diecutter
* Continuous integration: https://travis-ci.org/diecutter/diecutter

Project details


Download files

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

Files for diecutter, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size diecutter-0.6.zip (25.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page