lektor-chameleon


Namelektor-chameleon JSON
Version 0.9 PyPI version JSON
download
home_pageNone
SummaryChameleon template support for Lektor.
upload_time2024-04-28 20:47:26
maintainerNone
docs_urlNone
authorNone
requires_python~=3.8
licenseCopyright 2018-2024 H. Turgut Uyar <uyar@tekir.org> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords lektor plugin chameleon template
VCS
bugtrack_url
requirements babel blinker certifi chameleon charset-normalizer click exifread filetype flask idna importlib-metadata importlib-resources inifile itsdangerous jinja2 lektor markupsafe mistune pip python-slugify pytz requests setuptools text-unidecode urllib3 watchdog werkzeug zipp
Travis-CI No Travis.
coveralls test coverage No coveralls.
            lektor-chameleon
================

lektor-chameleon is a plugin for the `Lektor <https://www.getlektor.com>`_
static site generator
that makes is possible to write the templates
using `Chameleon <https://chameleon.readthedocs.io/>`_.

To use the plugin, add it to your project::

  lektor plugin add lektor-chameleon

Templates must have the ``.pt`` file extension.

Usage examples:

.. code:: html

   <html lang="${this.alt}">

   <h1 tal:content="this.title">Page title</h1>

   <span tal:replace="bag('translate', this.alt, 'message')">message</span>

The following Lektor filters are available as functions:

- `asseturl <https://www.getlektor.com/docs/api/templates/filters/asseturl/>`_
- `dateformat <https://www.getlektor.com/docs/api/templates/filters/dateformat/>`_
- `datetimeformat <https://www.getlektor.com/docs/api/templates/filters/datetimeformat/>`_
- `latformat <https://www.getlektor.com/docs/api/templates/filters/latformat/>`_
- `latlongformat <https://www.getlektor.com/docs/api/templates/filters/latlongformat/>`_
- `longformat <https://www.getlektor.com/docs/api/templates/filters/longformat/>`_
- `markdown <https://www.getlektor.com/docs/api/templates/filters/markdown/>`_
- `tojson <https://www.getlektor.com/docs/api/templates/filters/tojson/>`_
- `url <https://www.getlektor.com/docs/api/templates/filters/url/>`_

The following Jinja filters are available as functions:

- `filesizeformat <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.filesizeformat>`_
- `indent <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.indent>`_
- `striptags <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.striptags>`_
- `truncate <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.truncate>`_
- `wordwrap <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.wordwrap>`_

Usage examples:

.. code:: html

   <a href="${url('/')}">Home page</a>

   <a href="${url('/', alt=this.alt)">link text</a>

   <link rel="stylesheet" href="${asseturl('/static/custom.css')}"/>

   <div tal:content="striptags(this.body)">Shortened body text</div>

   <div tal:replace="indent(this.body.html, 2)">Page body</div>

   <body>
     ${ structure:wordwrap(this.body.html, width=72) }
   </body>

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "lektor-chameleon",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "~=3.8",
    "maintainer_email": null,
    "keywords": "lektor, plugin, chameleon, template",
    "author": null,
    "author_email": "\"H. Turgut Uyar\" <uyar@tekir.org>",
    "download_url": "https://files.pythonhosted.org/packages/2e/46/a7389c5eec80be133307e37a1903ac1a87fc0368dd531bf483d6e5f16908/lektor_chameleon-0.9.tar.gz",
    "platform": null,
    "description": "lektor-chameleon\n================\n\nlektor-chameleon is a plugin for the `Lektor <https://www.getlektor.com>`_\nstatic site generator\nthat makes is possible to write the templates\nusing `Chameleon <https://chameleon.readthedocs.io/>`_.\n\nTo use the plugin, add it to your project::\n\n  lektor plugin add lektor-chameleon\n\nTemplates must have the ``.pt`` file extension.\n\nUsage examples:\n\n.. code:: html\n\n   <html lang=\"${this.alt}\">\n\n   <h1 tal:content=\"this.title\">Page title</h1>\n\n   <span tal:replace=\"bag('translate', this.alt, 'message')\">message</span>\n\nThe following Lektor filters are available as functions:\n\n- `asseturl <https://www.getlektor.com/docs/api/templates/filters/asseturl/>`_\n- `dateformat <https://www.getlektor.com/docs/api/templates/filters/dateformat/>`_\n- `datetimeformat <https://www.getlektor.com/docs/api/templates/filters/datetimeformat/>`_\n- `latformat <https://www.getlektor.com/docs/api/templates/filters/latformat/>`_\n- `latlongformat <https://www.getlektor.com/docs/api/templates/filters/latlongformat/>`_\n- `longformat <https://www.getlektor.com/docs/api/templates/filters/longformat/>`_\n- `markdown <https://www.getlektor.com/docs/api/templates/filters/markdown/>`_\n- `tojson <https://www.getlektor.com/docs/api/templates/filters/tojson/>`_\n- `url <https://www.getlektor.com/docs/api/templates/filters/url/>`_\n\nThe following Jinja filters are available as functions:\n\n- `filesizeformat <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.filesizeformat>`_\n- `indent <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.indent>`_\n- `striptags <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.striptags>`_\n- `truncate <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.truncate>`_\n- `wordwrap <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.wordwrap>`_\n\nUsage examples:\n\n.. code:: html\n\n   <a href=\"${url('/')}\">Home page</a>\n\n   <a href=\"${url('/', alt=this.alt)\">link text</a>\n\n   <link rel=\"stylesheet\" href=\"${asseturl('/static/custom.css')}\"/>\n\n   <div tal:content=\"striptags(this.body)\">Shortened body text</div>\n\n   <div tal:replace=\"indent(this.body.html, 2)\">Page body</div>\n\n   <body>\n     ${ structure:wordwrap(this.body.html, width=72) }\n   </body>\n",
    "bugtrack_url": null,
    "license": "Copyright 2018-2024 H. Turgut Uyar <uyar@tekir.org>  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
    "summary": "Chameleon template support for Lektor.",
    "version": "0.9",
    "project_urls": {
        "repository": "https://github.com/uyar/lektor-chameleon"
    },
    "split_keywords": [
        "lektor",
        " plugin",
        " chameleon",
        " template"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "68c0eb8fb6ab39c76ca6ce9345b4fb9c266e427d7fbd18fa3397f24b83442166",
                "md5": "316203a8288c7a94dc5cbd8e72cf8cea",
                "sha256": "526c7ee3e09ec20a0351190114950ddcf080e4deb646f565e623daa35fbd344f"
            },
            "downloads": -1,
            "filename": "lektor_chameleon-0.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "316203a8288c7a94dc5cbd8e72cf8cea",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.8",
            "size": 5240,
            "upload_time": "2024-04-28T20:47:25",
            "upload_time_iso_8601": "2024-04-28T20:47:25.048924Z",
            "url": "https://files.pythonhosted.org/packages/68/c0/eb8fb6ab39c76ca6ce9345b4fb9c266e427d7fbd18fa3397f24b83442166/lektor_chameleon-0.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2e46a7389c5eec80be133307e37a1903ac1a87fc0368dd531bf483d6e5f16908",
                "md5": "7636b98262bf1de0de62744ff7c6e5ae",
                "sha256": "d1501a3facf4ceba379205544083ea183b1593414038b9957ce62cf054d75ae4"
            },
            "downloads": -1,
            "filename": "lektor_chameleon-0.9.tar.gz",
            "has_sig": false,
            "md5_digest": "7636b98262bf1de0de62744ff7c6e5ae",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.8",
            "size": 5849,
            "upload_time": "2024-04-28T20:47:26",
            "upload_time_iso_8601": "2024-04-28T20:47:26.586465Z",
            "url": "https://files.pythonhosted.org/packages/2e/46/a7389c5eec80be133307e37a1903ac1a87fc0368dd531bf483d6e5f16908/lektor_chameleon-0.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-28 20:47:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "uyar",
    "github_project": "lektor-chameleon",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "babel",
            "specs": [
                [
                    "==",
                    "2.14.0"
                ]
            ]
        },
        {
            "name": "blinker",
            "specs": [
                [
                    "==",
                    "1.7.0"
                ]
            ]
        },
        {
            "name": "certifi",
            "specs": [
                [
                    "==",
                    "2024.2.2"
                ]
            ]
        },
        {
            "name": "chameleon",
            "specs": [
                [
                    "==",
                    "4.4.4"
                ]
            ]
        },
        {
            "name": "charset-normalizer",
            "specs": [
                [
                    "==",
                    "3.3.2"
                ]
            ]
        },
        {
            "name": "click",
            "specs": [
                [
                    "==",
                    "8.1.7"
                ]
            ]
        },
        {
            "name": "exifread",
            "specs": [
                [
                    "==",
                    "3.0.0"
                ]
            ]
        },
        {
            "name": "filetype",
            "specs": [
                [
                    "==",
                    "1.2.0"
                ]
            ]
        },
        {
            "name": "flask",
            "specs": [
                [
                    "==",
                    "2.3.3"
                ]
            ]
        },
        {
            "name": "idna",
            "specs": [
                [
                    "==",
                    "3.7"
                ]
            ]
        },
        {
            "name": "importlib-metadata",
            "specs": [
                [
                    "==",
                    "7.1.0"
                ]
            ]
        },
        {
            "name": "importlib-resources",
            "specs": [
                [
                    "==",
                    "6.4.0"
                ]
            ]
        },
        {
            "name": "inifile",
            "specs": [
                [
                    "==",
                    "0.4.1"
                ]
            ]
        },
        {
            "name": "itsdangerous",
            "specs": [
                [
                    "==",
                    "2.2.0"
                ]
            ]
        },
        {
            "name": "jinja2",
            "specs": [
                [
                    "==",
                    "3.1.3"
                ]
            ]
        },
        {
            "name": "lektor",
            "specs": [
                [
                    "==",
                    "3.3.11"
                ]
            ]
        },
        {
            "name": "markupsafe",
            "specs": [
                [
                    "==",
                    "2.1.5"
                ]
            ]
        },
        {
            "name": "mistune",
            "specs": [
                [
                    "==",
                    "0.8.4"
                ]
            ]
        },
        {
            "name": "pip",
            "specs": [
                [
                    "==",
                    "24.0"
                ]
            ]
        },
        {
            "name": "python-slugify",
            "specs": [
                [
                    "==",
                    "8.0.4"
                ]
            ]
        },
        {
            "name": "pytz",
            "specs": [
                [
                    "==",
                    "2024.1"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.31.0"
                ]
            ]
        },
        {
            "name": "setuptools",
            "specs": [
                [
                    "==",
                    "69.5.1"
                ]
            ]
        },
        {
            "name": "text-unidecode",
            "specs": [
                [
                    "==",
                    "1.3"
                ]
            ]
        },
        {
            "name": "urllib3",
            "specs": [
                [
                    "==",
                    "2.2.1"
                ]
            ]
        },
        {
            "name": "watchdog",
            "specs": [
                [
                    "==",
                    "4.0.0"
                ]
            ]
        },
        {
            "name": "werkzeug",
            "specs": [
                [
                    "==",
                    "2.3.8"
                ]
            ]
        },
        {
            "name": "zipp",
            "specs": [
                [
                    "==",
                    "3.18.1"
                ]
            ]
        }
    ],
    "lcname": "lektor-chameleon"
}
        
Elapsed time: 0.24585s