-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57285f3
commit 20d8773
Showing
10 changed files
with
149 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
install: make configure develop | ||
script: make test | ||
env: | ||
- TOXENV=py27 | ||
- TOXENV=flake8 | ||
- TOXENV=sphinx | ||
- TOXENV=readme | ||
install: | ||
- pip install tox | ||
script: | ||
- tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
recursive-include diecutter * | ||
global-exclude *.pyc .*.swp | ||
include AUTHORS CHANGELOG INSTALL LICENSE README VERSION | ||
include AUTHORS CHANGELOG INSTALL LICENSE README.rst VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
######### | ||
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. | ||
|
||
.. note:: | ||
|
||
Diecutter is under active development: some (killer) features have not been | ||
implemented yet, or they are not mature. | ||
Check `milestones <https://github.com/novagile/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!** | ||
|
||
.. image:: https://secure.travis-ci.org/diecutter/diecutter.png?branch=master | ||
:alt: Build Status | ||
:target: https://secure.travis-ci.org/diecutter/diecutter | ||
.. image:: https://pypip.in/v/diecutter/badge.png | ||
:target: https://python.org/pypi/diecutter/ | ||
.. image:: https://pypip.in/d/diecutter/badge.png | ||
:target: https://python.org/pypi/diecutter/ | ||
|
||
******* | ||
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! | ||
********** | ||
Ressources | ||
********** | ||
|
||
* Documentation: http://diecutter.readthedocs.org | ||
* Online demo: http://diecutter.io | ||
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[tox] | ||
envlist = py27, flake8, sphinx, readme | ||
|
||
[testenv] | ||
deps = | ||
nose | ||
rednose | ||
coverage | ||
commands = | ||
python setup.py install | ||
nosetests --config=etc/nose.cfg --config=etc/nose-app.cfg diecutter tests | ||
rm .coverage | ||
pip freeze | ||
whitelist_externals = | ||
rm | ||
|
||
[testenv:flake8] | ||
deps = | ||
flake8 | ||
commands = | ||
flake8 diecutter | ||
|
||
[testenv:sphinx] | ||
deps = | ||
nose | ||
rednose | ||
Sphinx | ||
commands = | ||
python setup.py install | ||
make --directory=docs clean html | ||
whitelist_externals = | ||
make | ||
|
||
[testenv:readme] | ||
deps = | ||
docutils | ||
pygments | ||
commands = | ||
mkdir -p var/docs | ||
rst2html.py --exit-status=2 README.rst var/docs/README.html | ||
whitelist_externals = | ||
mkdir | ||
|
||
[testenv:release] | ||
deps = | ||
zest.releaser | ||
commands = | ||
fullrelease |