{ "info": { "author": "Stavros Korokithakis,,,", "author_email": "hi@stavros.io", "bugtrack_url": null, "classifiers": [], "description": "Lektor Shortcodes\n=================\n\n[![PyPI](https://img.shields.io/pypi/v/lektor-shortcodes.svg)](https://pypi.python.org/pypi/lektor-shortcodes)\n\nThe Lektor Shortcodes plugin allows you to use shortcodes (shortcodes are\nsomething like custom tags) in your fields (not templates), so your content\ndoesn't have to have repetitive snippets over and over.\n\nFor example, my blog has some specific HTML that I add when I want an image with\na border and caption to be displayed. The HTML looks like this:\n\n\n~~~html\n
\n \n \n The caption\n \n
\n~~~\n\nCopy-pasting this every time gets tedious, and I have to search and replace it\nin all the content files every time I want to make a change. With the\nshortcodes plugin, this can be written as:\n\n~~~\n[% image align=right link=\"image-large.jpg\" image=image.jpg caption=\"The caption\" %]\n~~~\n\nMuch easier, cleaner and less repetitive.\n\n\nInstallation\n------------\n\nTo install the plugin, just add `lektor-shortcodes` to your plugins from the\ncommand line:\n\n~~~\nlektor plugins add lektor-shortcodes\n~~~\n\n\nUsage\n-----\n\nUsing the plugin is simple. Just create a config file called `shortcodes.ini` in\nyour `configs` directory and specify some shortcode templates. The templates are\nfull Jinja templates, although (due to some limitations of ini files) they need\nto be on one line.\n\nFor instance, for the example above, the config file could be:\n\n~~~ini\n[global]\nimage = '
{% if link %}{% endif %}{% if link %}{% endif %}{% if caption %}{{ caption }}{% endif %}
'\n~~~\n\nThis will allow you to use shortcodes with optional arguments, like so:\n\n~~~\n# An image with no caption or link:\n[% image align=right image=hello.jpg %]\n\n\n# An image with a link:\n[% image align=right link=http://www.example.com image=hello.jpg %]\n\n# Link and caption:\n[% image align=right link=http://www.example.com image=hello.jpg caption=\"Hello!\" %]\n~~~\n\nShortcodes defined within the section named `global` will be processed\nautomatically inside any of your site\u2019s Markdown content. It is also possible to\ndefine shortcodes which are only expanded when the Jinja2 template for a page\nexplicitly requests it. Shortcodes defined in any section not named `global`\nwill only be applied when the template passed the content through a Jinja2\nfilter named `shortcode`. For example, if your HTML template references a field\ncalled `body`, you may request expanding shortcodes defined within the\n`body-only` section of your config file, like so:\n\n~~~\n{{ body|shortcodes(section=\"body-only\") }}\n~~~\n\nThis will enable all shortcodes from the specified section, in addition to all\nglobally defined shortcodes. If no section is specified, the filter defaults to\nthe section named `main`.\n\n\nMiscellanea\n-----------\n\nIf you find a bug or have a feature request, please open an issue or file a PR.\nThanks!\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/skorokithakis/lektor-shortcodes", "keywords": "lektor shortcodes", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "lektor-shortcodes", "package_url": "https://pypi.org/project/lektor-shortcodes/", "platform": "", "project_url": "https://pypi.org/project/lektor-shortcodes/", "project_urls": { "Homepage": "https://github.com/skorokithakis/lektor-shortcodes" }, "release_url": "https://pypi.org/project/lektor-shortcodes/0.2.5/", "requires_dist": null, "requires_python": "", "summary": "The Lektor Shortcodes plugin allows you to use shortcodes (shortcodes are something like custom tags) in your fields (not templates), so your content doesn't have to have repetitive snippets over and over.", "version": "0.2.5" }, "last_serial": 4013228, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "bda3c51d909d1c2d053117e182a51f39", "sha256": "9c707a8318ca7360497f081d679c1c315e901c744f3f076739d6466f5d089f38" }, "downloads": -1, "filename": "lektor-shortcodes-0.1.tar.gz", "has_sig": false, "md5_digest": "bda3c51d909d1c2d053117e182a51f39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1204, "upload_time": "2017-05-19T09:53:32", "url": "https://files.pythonhosted.org/packages/2c/aa/d06614dbadb7f9c3a3c55076245f52a309b59021f85c24ef732e7747fbd6/lektor-shortcodes-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "8d931c66943efd42aec1f9348442ee10", "sha256": "a2a0efa84f7f61c872b9d9b3bef11634922a8fb0ef2a5a4f78906dbe6d079745" }, "downloads": -1, "filename": "lektor_shortcodes-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "8d931c66943efd42aec1f9348442ee10", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 2774, "upload_time": "2017-05-19T09:54:51", "url": "https://files.pythonhosted.org/packages/45/14/cd47eb0b167559333c90ac3940d7b979de1604bbc3c879605b472a08722a/lektor_shortcodes-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf57be08394b7fd51df209a6b1b45094", "sha256": "1a27fd3ede5f69efc9833b62c4bfa8e2215d20933fcc524098d30ec9d59caa8b" }, "downloads": -1, "filename": "lektor-shortcodes-0.1.1.tar.gz", "has_sig": false, "md5_digest": "cf57be08394b7fd51df209a6b1b45094", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1237, "upload_time": "2017-05-19T09:54:49", "url": "https://files.pythonhosted.org/packages/65/b5/05befa829a69d03cf7c51967dbc219e7fb94539613dd5eaec3fd08496d72/lektor-shortcodes-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "7540ab94997d74f4dd422b41691df96a", "sha256": "d1c894ccec626b49d76fef563d34c118d3f73f10bb3ca59361af400f9632e890" }, "downloads": -1, "filename": "lektor_shortcodes-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "7540ab94997d74f4dd422b41691df96a", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 2194, "upload_time": "2017-05-19T09:58:45", "url": "https://files.pythonhosted.org/packages/21/13/21daa15aa12e04b5b24c39ce31dbfdba890fa373073b761f3a59fd314a6c/lektor_shortcodes-0.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6ba7479f6b507e6b08b092f1a32a48b7", "sha256": "74696c79616adfcde8f1d31547cb7c6ff5e0410c747778792ee6041b7c9085d9" }, "downloads": -1, "filename": "lektor-shortcodes-0.1.2.tar.gz", "has_sig": false, "md5_digest": "6ba7479f6b507e6b08b092f1a32a48b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 788, "upload_time": "2017-05-19T09:58:44", "url": "https://files.pythonhosted.org/packages/c6/6f/e8c56abd23a05c05f166b2b48596c88b826741bb9fe85ecb8975061c7b2d/lektor-shortcodes-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c05bb90e8c1961a91f7994d18b93a443", "sha256": "4dae54e4f82faa1a988ff0e9de79d397399019ae84ac80a85eb91423637a9b62" }, "downloads": -1, "filename": "lektor_shortcodes-0.1.3-py2-none-any.whl", "has_sig": false, "md5_digest": "c05bb90e8c1961a91f7994d18b93a443", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5278, "upload_time": "2017-05-19T10:35:06", "url": "https://files.pythonhosted.org/packages/64/2b/7d56d57c4817e4ea5def56f10125c88c99aa81dc2ee572181aaba2dd7b0b/lektor_shortcodes-0.1.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0fba5cae7fe6d566b34747cb39852a67", "sha256": "f1a2b004818860f3bc31d5f73a88d63f599103a1c29e11fc5c4d3082902238b8" }, "downloads": -1, "filename": "lektor-shortcodes-0.1.3.tar.gz", "has_sig": false, "md5_digest": "0fba5cae7fe6d566b34747cb39852a67", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4784, "upload_time": "2017-05-19T10:35:05", "url": "https://files.pythonhosted.org/packages/b7/e2/c5e26cc10d83e6fce4180cf3f2ac3d36a48ff947e871dde4f637cbcab93f/lektor-shortcodes-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "2d9b84765c520bf730d0d30d949d4d86", "sha256": "19b746e6f5fe3ae39246a9812c279b1d77997d850637421118eed5e20d8b4403" }, "downloads": -1, "filename": "lektor_shortcodes-0.1.4-py2-none-any.whl", "has_sig": false, "md5_digest": "2d9b84765c520bf730d0d30d949d4d86", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5308, "upload_time": "2017-05-19T11:02:55", "url": "https://files.pythonhosted.org/packages/81/d2/f49fbcf4a64aaf3879ff4d4ed5311014772018eddfdd13047c21d7e5f9ec/lektor_shortcodes-0.1.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "72553e92ff58e713e53c50a8e499a7a7", "sha256": "08248e13fa1da9afdcd092ef321b0844cc3f1ae1d6c03aff880e69c0f1e91bc7" }, "downloads": -1, "filename": "lektor-shortcodes-0.1.4.tar.gz", "has_sig": false, "md5_digest": "72553e92ff58e713e53c50a8e499a7a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4818, "upload_time": "2017-05-19T11:02:45", "url": "https://files.pythonhosted.org/packages/5c/f6/4f068e8450326278561e0c6b572b0a11947dcc3fe132e45ce186c7cb40fb/lektor-shortcodes-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "a2c92947fb9c1251657d3be2b35edd42", "sha256": "cc382cf68c5e7281565b9938d2ce4984d5d996d4985ffbdebfe64844266dafab" }, "downloads": -1, "filename": "lektor_shortcodes-0.1.5-py2-none-any.whl", "has_sig": false, "md5_digest": "a2c92947fb9c1251657d3be2b35edd42", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5366, "upload_time": "2017-05-19T16:57:29", "url": "https://files.pythonhosted.org/packages/12/68/30913bdad96cf4ce5277b701c0b74fb9d0409f140e445d9cc7c2ba11c49f/lektor_shortcodes-0.1.5-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2fd650390864ea5469bda3ae20095652", "sha256": "937da0d1647ec176ba3c37b05f449b610843f72b890a4ae2b4b93570e0171fa4" }, "downloads": -1, "filename": "lektor-shortcodes-0.1.5.tar.gz", "has_sig": false, "md5_digest": "2fd650390864ea5469bda3ae20095652", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4856, "upload_time": "2017-05-19T16:57:26", "url": "https://files.pythonhosted.org/packages/6f/6c/0665dbf3231c86cb0d0efcd2a93d0d67ab5843e5eeb23b6f2f26efa1f481/lektor-shortcodes-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "2368c93062f36a9487c19a72c19e1cc4", "sha256": "d790c79ec9a6ee8d247d535e5205be15726663e25e8d89b58b2c3a8b8046c771" }, "downloads": -1, "filename": "lektor_shortcodes-0.1.6-py2-none-any.whl", "has_sig": false, "md5_digest": "2368c93062f36a9487c19a72c19e1cc4", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5367, "upload_time": "2017-10-20T14:40:16", "url": "https://files.pythonhosted.org/packages/5d/39/2ff46a7d4fa1c2de6a99fe76fcab9a491102c09c4a0938e1a7f84043d958/lektor_shortcodes-0.1.6-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dfe0a0c8145404720d23b1cd98ef4ba1", "sha256": "2f9af2b7a52b88459af2ff5762a48826f57868c743818384c413761e98677a64" }, "downloads": -1, "filename": "lektor-shortcodes-0.1.6.tar.gz", "has_sig": false, "md5_digest": "dfe0a0c8145404720d23b1cd98ef4ba1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4858, "upload_time": "2017-10-20T14:40:13", "url": "https://files.pythonhosted.org/packages/fe/a7/ed3c50d738b38ba5a1b1751dca859a0716d247b5f213bff2cac3c9f557e8/lektor-shortcodes-0.1.6.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "8f0913726d24af71f7bfc4c7309d8b12", "sha256": "aad903c0ce2c433939583f868595cc9ba84374ec4a09d6629ac13b57ccec6e8e" }, "downloads": -1, "filename": "lektor_shortcodes-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "8f0913726d24af71f7bfc4c7309d8b12", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5715, "upload_time": "2017-10-25T14:16:54", "url": "https://files.pythonhosted.org/packages/01/1a/c9b94da09b48bbf0f98cb75fd3afdb998c56682a73ff176e4ebe9737b817/lektor_shortcodes-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "12a37873b2042de5d800ed213a82e6fa", "sha256": "6ae36761a0e45ba01d98a6f83e1de003ae16399b34e8fdf4d05966a7a2296dba" }, "downloads": -1, "filename": "lektor-shortcodes-0.2.0.tar.gz", "has_sig": false, "md5_digest": "12a37873b2042de5d800ed213a82e6fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5331, "upload_time": "2017-10-25T14:16:52", "url": "https://files.pythonhosted.org/packages/6a/d8/2c15a32da70e95245b9463fdfff9368d3ffc276f98db401362b33b4ee90e/lektor-shortcodes-0.2.0.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "98ee64d91ba2b1240eee7757870c40b5", "sha256": "c01c3890d8b52a0b0e51337ed25170924aec6100090e7458ca127722ad161f0c" }, "downloads": -1, "filename": "lektor_shortcodes-0.2.3-py2-none-any.whl", "has_sig": false, "md5_digest": "98ee64d91ba2b1240eee7757870c40b5", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8548, "upload_time": "2018-05-11T20:45:58", "url": "https://files.pythonhosted.org/packages/84/38/48d6ef80d7d9cc5214252769ac94c4fe56c96cd49e373bf8b3af555fb69f/lektor_shortcodes-0.2.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "32530916bcc6fb2fa83280e1aca4cd4d", "sha256": "a29c1a3c0fcd3f02d84ebdc9e4b058acbf72b3f5f283f9433d8dff882a5711bb" }, "downloads": -1, "filename": "lektor-shortcodes-0.2.3.tar.gz", "has_sig": false, "md5_digest": "32530916bcc6fb2fa83280e1aca4cd4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5726, "upload_time": "2018-05-11T20:45:59", "url": "https://files.pythonhosted.org/packages/ba/65/7b1311c5101f1abd91a20235c763eda80f3d6251e191de259c1bb8d0468d/lektor-shortcodes-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "51ef83c767dede8c426f9f854924ab24", "sha256": "b29e9283a5b3aa48518a82356b844e5db7667743f70ed55bc334c9999cf694a3" }, "downloads": -1, "filename": "lektor_shortcodes-0.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "51ef83c767dede8c426f9f854924ab24", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6319, "upload_time": "2018-05-11T20:50:55", "url": "https://files.pythonhosted.org/packages/58/74/0e600f3c892a665baf2b8eb7c3c8a3e668d015d16c3d2a3e94b918e80f9a/lektor_shortcodes-0.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bdc56d197bc5d2a70d3c0c51b3258405", "sha256": "186d96e09de38009aa1093ea014f10613684b9f95b19ac47374ade86bed771cb" }, "downloads": -1, "filename": "lektor-shortcodes-0.2.4.tar.gz", "has_sig": false, "md5_digest": "bdc56d197bc5d2a70d3c0c51b3258405", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5739, "upload_time": "2018-05-11T20:50:57", "url": "https://files.pythonhosted.org/packages/20/40/9a6cffef43d10db1adae78ad57f34c9dac4ca95936090931b1b4bb0ef151/lektor-shortcodes-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "55be4cf349132860cfb834f9e43ee8fa", "sha256": "81069e1ff0800f1d1a1d7f7841c59256e02ef05b87f28060295b157311531e57" }, "downloads": -1, "filename": "lektor_shortcodes-0.2.5-py2-none-any.whl", "has_sig": false, "md5_digest": "55be4cf349132860cfb834f9e43ee8fa", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8650, "upload_time": "2018-06-28T23:06:13", "url": "https://files.pythonhosted.org/packages/ef/72/0516ffb47771520af81dfdb8a54815ab988ba08693b3205d22459289fd05/lektor_shortcodes-0.2.5-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "287ded92e06e51036e06270b953d8497", "sha256": "8a11838fc52bac982670c14fe03accab125db9995ddfbcc32963468e4366a72a" }, "downloads": -1, "filename": "lektor-shortcodes-0.2.5.tar.gz", "has_sig": false, "md5_digest": "287ded92e06e51036e06270b953d8497", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5961, "upload_time": "2018-06-28T23:06:12", "url": "https://files.pythonhosted.org/packages/af/33/815d2e139abcf5fe75b864f3c7140787b014debf627c5caec87579f5eae7/lektor-shortcodes-0.2.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "55be4cf349132860cfb834f9e43ee8fa", "sha256": "81069e1ff0800f1d1a1d7f7841c59256e02ef05b87f28060295b157311531e57" }, "downloads": -1, "filename": "lektor_shortcodes-0.2.5-py2-none-any.whl", "has_sig": false, "md5_digest": "55be4cf349132860cfb834f9e43ee8fa", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8650, "upload_time": "2018-06-28T23:06:13", "url": "https://files.pythonhosted.org/packages/ef/72/0516ffb47771520af81dfdb8a54815ab988ba08693b3205d22459289fd05/lektor_shortcodes-0.2.5-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "287ded92e06e51036e06270b953d8497", "sha256": "8a11838fc52bac982670c14fe03accab125db9995ddfbcc32963468e4366a72a" }, "downloads": -1, "filename": "lektor-shortcodes-0.2.5.tar.gz", "has_sig": false, "md5_digest": "287ded92e06e51036e06270b953d8497", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5961, "upload_time": "2018-06-28T23:06:12", "url": "https://files.pythonhosted.org/packages/af/33/815d2e139abcf5fe75b864f3c7140787b014debf627c5caec87579f5eae7/lektor-shortcodes-0.2.5.tar.gz" } ] }