charms.templating.jinja2-1.0.2


توضیحات

Framework for writing reactive-style Juju Charms
ویژگی مقدار
سیستم عامل -
نام فایل charms.templating.jinja2-1.0.2
نام charms.templating.jinja2
نسخه کتابخانه 1.0.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Cory Johns
ایمیل نویسنده johnsca@gmail.com
آدرس صفحه اصلی https://github.com/juju-solutions/charms.templating.jinja2
آدرس اینترنتی https://pypi.org/project/charms.templating.jinja2/
مجوز Apache License 2.0
charms.templating.jinja2 |badge| -------------------------------- .. |badge| image:: https://travis-ci.org/juju-solutions/charms.templating.jinja2.svg :target: https://travis-ci.org/juju-solutions/charms.templating.jinja2 Helper for rendering Jinja2 templates with charms Usage ----- .. code-block:: python from charms.templating.jinja2 import render render('app.conf.j2', '/etc/app.conf', { 'my_var': 'my_val', }) output = render( 'tmpl.j2', tests={ 'isnumeric': lambda s: s.isnumeric(), }) output = render( template='{{ config["my-opt"]|my_upper }}', filters={ 'my_upper': lambda s: s.upper(), }) The full documentation is available at http://pythonhosted.org/charms.templating.jinja2/


نحوه نصب


نصب پکیج whl charms.templating.jinja2-1.0.2:

    pip install charms.templating.jinja2-1.0.2.whl


نصب پکیج tar.gz charms.templating.jinja2-1.0.2:

    pip install charms.templating.jinja2-1.0.2.tar.gz