{ "info": { "author": "Paul Oppenheim", "author_email": "poppy@pauloppenheim.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Unix Shell", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Pre-processors", "Topic :: Text Processing", "Topic :: Text Processing :: Markup :: HTML" ], "description": "jtmpl\n================================================================================\n\njtmpl is a commandline app for quickly running jsontemplate. This lets you generate templated files without having to code, making jsontemplate more useful for build processes, system administration, and static HTML page generation.\n\njtmpl happens to be implemented in python, but you don't need to be using python in your project to take advantage of it.\n\n\nFor more about JSON Template, see:\n\nhttp://json-template.googlecode.com\n\n\n\nAn Example\n================================================================================\n\njtmpl is useful for when you have some type of form you want filled out with a data file that you already have. The data should be in JSON or easily convertable to JSON.\n\nThe example included with json-template is a long story about a music app, but let's make a quick address book and a letter we want to send to all the people in the address book::\n\n\t{.repeated section names}\n\t\n\tDear {@},\n\t\n\tI think you are really awesome.\n\t\n\tSincerely,\n\t{my_name}\n\t\n\t--------------------------- CUT HERE --------------------------------\n\t\n\t{.end}\n\nThat was the \"template file\". Here's the JSON data::\n\n\t{\n\t\t\"my_name\": \"Poppy\",\n\t\t\"names\": [\n\t\t\t\"Meghan\",\n\t\t\t\"Andy\",\n\t\t\t\"Josh\",\n\t\t\t\"Eden\",\n\t\t\t\"Andy\",\n\t\t\t\"Mateusz\"\n\t\t]\n\t}\n\nPut the template into letter.jtmpl.txt and the json data into names.json and run it like this::\n\n\t$ jtmpl names.json letter.jtmpl.txt\n\nyou will get::\n\n\tDear Meghan,\n\t\n\tI think you are really awesome.\n\t\n\tSincerely,\n\tPoppy\n\t\n\t--------------------------- CUT HERE --------------------------------\n\t\n\t\n\tDear Andy,\n\t\n\tI think you are really awesome.\n\t\n\tSincerely,\n\tPoppy\n\t\n\t--------------------------- CUT HERE --------------------------------\n\t\n\t\n\tDear Josh,\n\t\n\tI think you are really awesome.\n\t\n\tSincerely,\n\tPoppy\n\t\n\t--------------------------- CUT HERE --------------------------------\n\t\n\t\n\tDear Andy,\n\t\n\tI think you are really awesome.\n\t\n\tSincerely,\n\tPoppy\n\t\n\t--------------------------- CUT HERE --------------------------------\n\t\n\t\n\tDear Eden,\n\t\n\tI think you are really awesome.\n\t\n\tSincerely,\n\tPoppy\n\t\n\t--------------------------- CUT HERE --------------------------------\n\t\n\t\n\tDear Mateusz,\n\t\n\tI think you are really awesome.\n\t\n\tSincerely,\n\tPoppy\n\t\n\t--------------------------- CUT HERE --------------------------------\n\n\nSee the JSON Template documentation if you want to do anything more complicated.\n\nhttp://json-template.googlecode.com", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.pauloppenheim.com/projects/jtmpl/", "keywords": "jtmpl,json,template,templating,jsontemplate", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "jtmpl", "package_url": "https://pypi.org/project/jtmpl/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/jtmpl/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.pauloppenheim.com/projects/jtmpl/" }, "release_url": "https://pypi.org/project/jtmpl/0.1.0.4/", "requires_dist": null, "requires_python": null, "summary": "commandline app for quickly running jsontemplate", "version": "0.1.0.4" }, "last_serial": 793848, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "eea92538a43992ba569206c91125c01b", "sha256": "045eebc0f661fb59ddee2b95df0411c37311392ef2d5be15b9b6b8d1262881d4" }, "downloads": -1, "filename": "jtmpl-0.1.0.tar.gz", "has_sig": false, "md5_digest": "eea92538a43992ba569206c91125c01b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3960, "upload_time": "2012-06-29T04:59:57", "url": "https://files.pythonhosted.org/packages/4c/52/c8454d98e27705dc556307c2ba6a9b6e0f2d537883cd0fad7def509e5812/jtmpl-0.1.0.tar.gz" } ], "0.1.0.1": [ { "comment_text": "", "digests": { "md5": "364fe28574fe558b31950c7e09acca76", "sha256": "efc6f413290c7fa3fddc3f8e7661c3b3f2c0006fdddfff5f05abcccda7e9f196" }, "downloads": -1, "filename": "jtmpl-0.1.0.1.tar.gz", "has_sig": false, "md5_digest": "364fe28574fe558b31950c7e09acca76", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4443, "upload_time": "2012-06-29T21:06:21", "url": "https://files.pythonhosted.org/packages/b5/4c/35fa7187d86653ca8de7029e529dd49451bdf136d7980a47df83322b88b4/jtmpl-0.1.0.1.tar.gz" } ], "0.1.0.2": [ { "comment_text": "", "digests": { "md5": "782c1f2ebf7ff15df7a619ced2b1ac71", "sha256": "381014f5bb2c28d01ad06ff9553801e8e776c4cea9ff4c181864cef0cf2e5501" }, "downloads": -1, "filename": "jtmpl-0.1.0.2.tar.gz", "has_sig": false, "md5_digest": "782c1f2ebf7ff15df7a619ced2b1ac71", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4009, "upload_time": "2012-06-29T21:07:12", "url": "https://files.pythonhosted.org/packages/94/9a/af6efc97519404f68de31bc769355069375eca8d1697060ee139a6ec67ae/jtmpl-0.1.0.2.tar.gz" } ], "0.1.0.3": [ { "comment_text": "", "digests": { "md5": "391b0cbbed074374f5fcfb742cabd6e9", "sha256": "c6553c451ca5217c0532287aba6247a1b337b4999c9f4901216d3f43fcdd2670" }, "downloads": -1, "filename": "jtmpl-0.1.0.3.tar.gz", "has_sig": false, "md5_digest": "391b0cbbed074374f5fcfb742cabd6e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4008, "upload_time": "2012-06-29T21:08:31", "url": "https://files.pythonhosted.org/packages/e4/ed/4cda5df4fb2d9ce7acc6096a02e8d1a544f7b108abf703b46e66981c3329/jtmpl-0.1.0.3.tar.gz" } ], "0.1.0.4": [ { "comment_text": "", "digests": { "md5": "ab322e5c595e8ddfcd0e3712c3c64015", "sha256": "bc1525f207e721dcad097f8c84727a80e9a4cb9201452fc4c8de4decc96c689a" }, "downloads": -1, "filename": "jtmpl-0.1.0.4.tar.gz", "has_sig": false, "md5_digest": "ab322e5c595e8ddfcd0e3712c3c64015", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4006, "upload_time": "2012-06-29T21:09:44", "url": "https://files.pythonhosted.org/packages/ab/4f/9608ff795e8777628def1421c620b053437cb3a66931f30f4ed904006e0c/jtmpl-0.1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ab322e5c595e8ddfcd0e3712c3c64015", "sha256": "bc1525f207e721dcad097f8c84727a80e9a4cb9201452fc4c8de4decc96c689a" }, "downloads": -1, "filename": "jtmpl-0.1.0.4.tar.gz", "has_sig": false, "md5_digest": "ab322e5c595e8ddfcd0e3712c3c64015", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4006, "upload_time": "2012-06-29T21:09:44", "url": "https://files.pythonhosted.org/packages/ab/4f/9608ff795e8777628def1421c620b053437cb3a66931f30f4ed904006e0c/jtmpl-0.1.0.4.tar.gz" } ] }