Skip to main content

Templates as a service.

Project description

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

Project details


Download files

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

Source Distribution

diecutter-0.7.zip (23.0 kB view details)

Uploaded Source

File details

Details for the file diecutter-0.7.zip.

File metadata

  • Download URL: diecutter-0.7.zip
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for diecutter-0.7.zip
Algorithm Hash digest
SHA256 defb9f0f7fc5fc9eafd2405f449e709a03455c7aca895cc220d368f8a07258a2
MD5 2d0b1663df68ff8be34f8af5bd43b8d1
BLAKE2b-256 d1384ad2c162a10a251a9e1d422b7cbd53794c7405397d682a2d1aa1bfe5ba51

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page