{ "info": { "author": "Securactive", "author_email": "dev@securactive.net", "bugtrack_url": null, "classifiers": [], "description": "=========================\nsact.recipe.jinjatemplate\n=========================\n\nsact.recipe.jinjatemplate is a Buildout recipe for generating files\nusing Jinja2 templates. It's a friendly fork of\namplecode.recipe.template (no more maintained).\n\nBuildout Options\n================\n\n* template-file (required): One or more Jinja2 template file paths.\n* target-file (required): One of more target file paths. The number of files must match the number of template files.\n* base-dir: Base directory of the Jinja2 environment. Template file paths are relative to this directory. Default is the Buildout directory.\n* target-executable: One or more boolean flags (yes|no|true|false|1|0) indicating the executability of the target files. If only one flag is given it is applied to all target files.\n* eggs: Reserved for a list of eggs, conveniently converted into a pkg_resources.WorkingSet when specified.\n\nAdditional options are simply forwarded to the templates, and options from all the other parts are made available through ``parts..`` and ``parts[][]``.\n\nLists of Values\n===============\n\nThe `split` filter was removed in the 1.2. It is still possible for a\nrecipe option to contain one or more values, separated by whitespace::\n\n #!/bin/sh\n {% for cmd in cmds.split() %}\n echo \"{{ cmd }}\"\n {% endfor %}\n\nMinimal Example\n===============\n\nfoo.txt is created from foo.txt.jinja2 without any extra options::\n\n [buildout]\n parts = foo\n\n [foo]\n recipe = sact.recipe.jinjatemplate\n template-file = foo.txt.jinja2\n target-file = foo.txt\n\nLarger Example\n==============\n\nfoo.txt is created from myapp/foo.txt.jinja2, bar.sh is created from myapp/bar.sh.jinja2, the second will be executable, and both templates can utilize the additional options specified::\n\n [buildout]\n parts = foo\n\n [foo]\n recipe = sact.recipe.jinjatemplate\n base-dir = myapp\n template-file =\n foo.txt.jinja2\n bar.sh.jinja2\n target-file =\n foo.txt\n bar.sh\n target-executable =\n false\n true\n project_name = Another Example\n author = Me\n\n\nTemplating Shell Scripts\n========================\n\nIf you use this recipe to template shell scripts, it is STRONGLY\nrecommanded to use the filter 'shell_quote' to avoid bad surprises::\n\n #!/bin/sh\n rm -rf -- {{ path|shell_quote }}\nVersion 1.3 (2015-07-07)\n------------------------\n\n* Added Jinja function to generate a random string\n\n\nVersion 1.2.1 (2015-01-27)\n--------------------------\n\n* Fix packaging information\n\n\nVersion 1.2 (2015-01-23)\n------------------------\n\n* Updates tests\n* Add the 'type' builtin in the Environment globals\n* Update the documentation\n\n\nVersion 1.1 (2015-01-21)\n------------------------\n\n* Update bootstrap.py.\n* Add a 'shell_quote' Jinja filter.\n* Cleanup code.\n* Python3 compliance (seems to work fine with 3.4).\n* Add some python builtins like (any, all, bool, zip, sorted, len, int, min, max) available in templates.\n* Add more tests.\n\n\nVersion 1.0 (2013-11-27)\n------------------------\n\n* Initial version", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/securactive/sact.recipe.jinjatemplate", "keywords": "zc.buildout recipe template Jinja2", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "sact.recipe.jinjatemplate", "package_url": "https://pypi.org/project/sact.recipe.jinjatemplate/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sact.recipe.jinjatemplate/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/securactive/sact.recipe.jinjatemplate" }, "release_url": "https://pypi.org/project/sact.recipe.jinjatemplate/1.3.0/", "requires_dist": null, "requires_python": null, "summary": "Buildout recipe for making files out of Jinja2 templates", "version": "1.3.0" }, "last_serial": 1623946, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "ac27d8be506ca34d789b42cfb295e7b1", "sha256": "1295794bfa1ba71217a3b2fb82506c0d4114dce8a76b45560abdb86da81f10d9" }, "downloads": -1, "filename": "sact.recipe.jinjatemplate-1.0.tar.gz", "has_sig": false, "md5_digest": "ac27d8be506ca34d789b42cfb295e7b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4595, "upload_time": "2013-11-27T18:37:48", "url": "https://files.pythonhosted.org/packages/2f/94/b715039b75f0bf1083c0d0c28dfab6f287d5041d7837ecfa56ce56a973cd/sact.recipe.jinjatemplate-1.0.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "64041f208074a865c14ef6289be5799a", "sha256": "b67a7148b26e18baf3c0c0d673aee0b1d3a9584411f5f893671af83a88fb270b" }, "downloads": -1, "filename": "sact.recipe.jinjatemplate-1.2.tar.gz", "has_sig": false, "md5_digest": "64041f208074a865c14ef6289be5799a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5290, "upload_time": "2015-01-27T14:28:11", "url": "https://files.pythonhosted.org/packages/26/03/4351a1885ebc528d2be9c9aef41a866c06186ea530b7be0889169e8d1063/sact.recipe.jinjatemplate-1.2.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "d1f893b944e6beecda96e6b2867d9bed", "sha256": "681ea1beaf2c79576b684b71c72e0d164c99922b8d9b793231ecc00b42ca8e64" }, "downloads": -1, "filename": "sact.recipe.jinjatemplate-1.2.1.tar.gz", "has_sig": false, "md5_digest": "d1f893b944e6beecda96e6b2867d9bed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5375, "upload_time": "2015-01-27T14:47:15", "url": "https://files.pythonhosted.org/packages/26/5c/b3506d0f39f6ef3ebe0097ddafd20e89e13ce78f0d881061965f9e9011f8/sact.recipe.jinjatemplate-1.2.1.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "065e07e8f91a82b26d77e612c261ce44", "sha256": "a8688719e63df7c6c8e88d843eed9cddbc2a5869165f5037cdd829346beb9b3a" }, "downloads": -1, "filename": "sact.recipe.jinjatemplate-1.3.0.tar.gz", "has_sig": false, "md5_digest": "065e07e8f91a82b26d77e612c261ce44", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5540, "upload_time": "2015-07-08T07:12:29", "url": "https://files.pythonhosted.org/packages/99/a0/ed8a3c5dbec178c93b99e802b593b9ef64e0273b84c50236a7acf0647463/sact.recipe.jinjatemplate-1.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "065e07e8f91a82b26d77e612c261ce44", "sha256": "a8688719e63df7c6c8e88d843eed9cddbc2a5869165f5037cdd829346beb9b3a" }, "downloads": -1, "filename": "sact.recipe.jinjatemplate-1.3.0.tar.gz", "has_sig": false, "md5_digest": "065e07e8f91a82b26d77e612c261ce44", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5540, "upload_time": "2015-07-08T07:12:29", "url": "https://files.pythonhosted.org/packages/99/a0/ed8a3c5dbec178c93b99e802b593b9ef64e0273b84c50236a7acf0647463/sact.recipe.jinjatemplate-1.3.0.tar.gz" } ] }