{ "info": { "author": "Charles Dawson", "author_email": "charles.dwsn@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Text Processing :: Markup" ], "description": "Flint\n=====\n\nDynamic Markdown\n\n\nWhat?\n-----\n\nFlint is a python engine for generating dynamic webpages from [Markdown](http://daringfireball.net/projects/markdown/) templates.\n\nInstallation\n------------\n\n`pip install flint-md`\n\nHow?\n----\n\nI think the best way to demonstrate the syntax is with an example, so here goes:\n\n### Python snippet: ###\n```python\nfrom flint import Flint\n\nmy_flint = Flint(\"example.md\")\nflint_dict = {\"name\": \"Foobar\",\n\t\t\t \"result\": 1+1,\n\t\t\t \"key_for_iterable\": [1, 2, 3, 4, 5]}\nmy_flint.render()\nmy_flint.getHTML()\n# This will return the rendered HTML, with all the values substituted\n# \tAlternatively, you can export the HTML to a file by using\n# \t\tmy_flint.exportHTML(\"path/to/export\")\n```\n\n### template.md ###\n```\nThis is {name}'s header\n=======================\n\nInsert {key} anywhere in the template, and Flint will replace it with the value for that key. If the key does not appear in Flint's dictionary, it will be ignored.\n\n1 + 1 = {result}\n\n\nAdditionally, if you have a key with an iterable value, you can create a list:\n\n|key_for_iterable|[[This is item {*}]]\n\nThe value will be inserted at the {*}\n```\n\n\nThis will produce the following HTML:\n```\n

This is Foobar's header

\n

Insert {key} anywhere in the template, and Flint will replace it with the value for that key. If the key does not appear in Flint's dictionary, it will be ignored.

\n

1 + 1 = 2

\n

Additionally, if you have a key with an iterable value, you can create a list:

\n\n

The value will be inserted at the {*}

\n```\n\nFor more examples, see the examples folder.\n\nMore information on [my blog](http://www.cdawson.net/flint)", "description_content_type": null, "docs_url": null, "download_url": "http://github.com/TheBritKnight/Flint", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://cdawson.net/flint", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "flint-md", "package_url": "https://pypi.org/project/flint-md/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/flint-md/", "project_urls": { "Download": "http://github.com/TheBritKnight/Flint", "Homepage": "http://cdawson.net/flint" }, "release_url": "https://pypi.org/project/flint-md/1.1.1/", "requires_dist": null, "requires_python": null, "summary": "Dynamic Markdown Templating", "version": "1.1.1" }, "last_serial": 954342, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "fcf1c24e4dcf0e373ead02602ba05458", "sha256": "09b83877983cccf681f8632ed94dbbfaae4fccdac677bbdacc3356013c43ae9e" }, "downloads": -1, "filename": "flint-md-1.0.tar.gz", "has_sig": false, "md5_digest": "fcf1c24e4dcf0e373ead02602ba05458", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1618, "upload_time": "2013-12-25T00:22:13", "url": "https://files.pythonhosted.org/packages/55/8f/2e8d724997b7fe24dd903862731dfa363e79ad7e1944734905ad1bb19efd/flint-md-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "c333ec4ffe945fbddb8bc04d0304ba08", "sha256": "1cd236d4d0f27bf1c9ffefc395d15f431e70c267bdcfcc6c7bd5c44344570724" }, "downloads": -1, "filename": "flint-md-1.0.1.tar.gz", "has_sig": true, "md5_digest": "c333ec4ffe945fbddb8bc04d0304ba08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1617, "upload_time": "2013-12-25T00:24:52", "url": "https://files.pythonhosted.org/packages/37/46/7119a4501e47d2d0b8f7614e3f560e191f54b20b21cf58da962fa4a774a4/flint-md-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "5d1cb8b8cfbf5ffb9bb993715a882705", "sha256": "d01d3fadacb6b999d4f581ec9734793d8cfa44991f9c873e880d813798810126" }, "downloads": -1, "filename": "flint-md-1.0.2.tar.gz", "has_sig": true, "md5_digest": "5d1cb8b8cfbf5ffb9bb993715a882705", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2273, "upload_time": "2013-12-25T00:26:22", "url": "https://files.pythonhosted.org/packages/9e/2e/68cb99a1c8aec5ff95f4fe9556d9ca71d5704477498310caf0d57ff11320/flint-md-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "718969eacdc3c710249f8641dddcf7e2", "sha256": "7f2f0944e111bc130c68d553be8a07044651599fe76e9ac6dc4b8043156ab68f" }, "downloads": -1, "filename": "flint-md-1.0.3.tar.gz", "has_sig": true, "md5_digest": "718969eacdc3c710249f8641dddcf7e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1609, "upload_time": "2013-12-25T00:28:20", "url": "https://files.pythonhosted.org/packages/92/b4/ed7bc4ca584d39a6dd139c3f75f41fdf7e30abd3933383c28519b47cfeb9/flint-md-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "65eb0805092b7a99233c1dd49874c651", "sha256": "328269f20c0cbb1b363bba9ebc488fdca977f073f822fb17a91bb91bb7b5c3ff" }, "downloads": -1, "filename": "flint-md-1.0.4.tar.gz", "has_sig": true, "md5_digest": "65eb0805092b7a99233c1dd49874c651", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1611, "upload_time": "2013-12-25T00:37:08", "url": "https://files.pythonhosted.org/packages/f3/d0/9d95e54fa2245c757fd0b93ed51baee305a7e5a02303431aaf893bd0319a/flint-md-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "11ff449f8a0fed8c06a7e0945943c503", "sha256": "b03a9efa0022d690216598b3648f21adb868e79166f40211f1ec5cd3b2f59f41" }, "downloads": -1, "filename": "flint-md-1.0.5.tar.gz", "has_sig": true, "md5_digest": "11ff449f8a0fed8c06a7e0945943c503", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2337, "upload_time": "2013-12-25T00:40:52", "url": "https://files.pythonhosted.org/packages/c0/5b/7b90eb6ba8ae0ef761167799f9466ee0f4ff44a20b739418ff586a915efa/flint-md-1.0.5.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "ada6d46ede549ad1c328d0a0bb23c927", "sha256": "c2c90c896405fcbec4323831665a8ec82dd1766e530c6b9188ef1ca5d091f2fc" }, "downloads": -1, "filename": "flint-md-1.1.0.tar.gz", "has_sig": true, "md5_digest": "ada6d46ede549ad1c328d0a0bb23c927", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3355, "upload_time": "2013-12-25T05:23:49", "url": "https://files.pythonhosted.org/packages/d8/30/b20a187dc8e2e17d357f3eb191904b5a098a4c95b483869f6c0cd76a6829/flint-md-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "6bb6c55df10433dccfc11a112f15c01b", "sha256": "03d91179e3e9fe1aa9721d6e97745e90f7acc28c4c2dbcd4152b3eb8ddd5ebd7" }, "downloads": -1, "filename": "flint-md-1.1.1.tar.gz", "has_sig": true, "md5_digest": "6bb6c55df10433dccfc11a112f15c01b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3349, "upload_time": "2013-12-25T05:26:07", "url": "https://files.pythonhosted.org/packages/a8/e6/c7a9338d6794cba77fbf3ffa8809adfe137204f51eb53ae60b5cc77f55d6/flint-md-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6bb6c55df10433dccfc11a112f15c01b", "sha256": "03d91179e3e9fe1aa9721d6e97745e90f7acc28c4c2dbcd4152b3eb8ddd5ebd7" }, "downloads": -1, "filename": "flint-md-1.1.1.tar.gz", "has_sig": true, "md5_digest": "6bb6c55df10433dccfc11a112f15c01b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3349, "upload_time": "2013-12-25T05:26:07", "url": "https://files.pythonhosted.org/packages/a8/e6/c7a9338d6794cba77fbf3ffa8809adfe137204f51eb53ae60b5cc77f55d6/flint-md-1.1.1.tar.gz" } ] }