skip to navigation
skip to content

diecutter 0.3

Templates as a service

Latest Version: 0.7.1

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

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.


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

GET raw content of a template:

.. code-block:: text

$ curl -X GET http://diecutter.alwaysdata.net/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.alwaysdata.net/api/greetings.txt
Hello world!

More examples in :doc:`demo` and :doc:`client/index`!


**********
Ressources
**********

* Documentation: http://diecutter.readthedocs.org
* Online demo: http://diecutter.alwaysdata.net
* PyPI page: http://pypi.python.org/pypi/diecutter
* Code repository: https://github.com/novagile/diecutter
* Bugtracker: https://github.com/novagile/diecutter/issues
* Continuous integration: https://travis-ci.org/novagile/diecutter  
File Type Py Version Uploaded on Size
diecutter-0.3.zip (md5) Source 2013-04-15 24KB