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 and vision for details.
That said, features documented below actually work, so give it a try!
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!
- 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
- IRC Channel: irc://irc.freenode.net/#diecutter