Metadata-Version: 1.1
Name: lektor-chameleon
Version: 0.6
Summary: Chameleon support for templating in Lektor.
Home-page: https://github.com/uyar/lektor-chameleon
Author: H. Turgut Uyar
Author-email: uyar@tekir.org
License: BSD
Description: |pypi| |license|
        
        .. |pypi| image:: https://img.shields.io/pypi/v/lektor-chameleon.svg?style=flat-square
            :target: https://pypi.org/project/lektor-chameleon/
            :alt: PyPI version.
        
        .. |license| image:: https://img.shields.io/pypi/l/lektor-chameleon.svg?style=flat-square
            :target: https://github.com/uyar/lektor-chameleon/blob/master/LICENSE.txt
            :alt: Project license.
        
        lektor-chameleon is a plugin for the `Lektor <https://www.getlektor.com>`_
        static site generator that makes is possible to write the templates using
        the `Chameleon <https://chameleon.readthedocs.io/>`_ template engine.
        
        To use the plugin, add it to your project::
        
          lektor plugin add lektor-chameleon
        
        Since the plugin modifies the default environment, it requires
        that it will be explicitly enabled.
        To enable the plugin, create the file ``configs/chameleon.ini``
        and put the following lines into it::
        
          [chameleon]
          enabled = yes
        
        If you don't want to use the ".html" extension for your template files,
        you can set a different one in the configuration::
        
          [chameleon]
          enabled = yes
          file_ext = .pt
        
        Usage examples:
        
        .. code-block:: html
        
           <html lang="${this.alt}">
        
           <h1 tal:content="this.title">Page title</h1>
        
           <span tal:replace="bag('translate', this.alt, 'message')">message</span>
        
        Many Lektor and Jinja filters are available using the ``>>`` operator:
        
        .. code-block:: html
        
           <a href="${'/' >> url}">Home page</a>
        
           <link rel="stylesheet" href="${'/static/custom.css' >> asseturl}"/>
        
        Filters also accept parameters:
        
        .. code-block:: html
        
           <a href="${'.' >> url(alt=this.alt)}">link text</a>
        
        But filter parameters must be given as keyword parameters:
        
        .. code-block:: html
        
           <!-- incorrect -->
           <div tal:replace="this.body >> indent(4)">Page body</div>
        
           <!-- correct -->
           <div tal:replace="this.body >> indent(width=4)">Page body</div>
        
        
        0.6 (2021-12-01)
        ----------------
        
        - Add ability to set the template file extension in the configuration.
        
        0.5.1 (2019-08-11)
        ------------------
        
        - Fix preliminary support for flowblock templates.
        
        0.5 (2019-08-04)
        ----------------
        
        - Require explicit enabling of plugin.
        
        0.4 (2019-08-02)
        ----------------
        
        - Correctly track template dependencies during builds.
        - Switch to BSD license.
        
        0.1 (2018-10-28)
        ----------------
        
        - Initial release.
        
Keywords: lektor plugin static-site blog chameleon templating
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Plugins
Classifier: Environment :: Web Environment
Classifier: Framework :: Lektor
Classifier: License :: OSI Approved :: BSD License
