معرفی شرکت ها


foostache-1.2.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

The foostache template engine.
ویژگی مقدار
سیستم عامل -
نام فایل foostache-1.2.1
نام foostache
نسخه کتابخانه 1.2.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Lynn Gabbay
ایمیل نویسنده gabbay@gmail.com
آدرس صفحه اصلی https://github.com/ldgabbay/foostache-python/
آدرس اینترنتی https://pypi.org/project/foostache/
مجوز MIT
[![PyPI version](https://badge.fury.io/py/foostache.svg)](https://badge.fury.io/py/foostache) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/foostache.svg) ![PyPI - License](https://img.shields.io/pypi/l/foostache.svg) # foostache **foostache** is a language and environment independent template engine. Unlike alternatives such as Jinja2 and mustache, foostache can theoretically be implemented in any programming language for any runtime environment. The complete language specification can be found [here](https://github.com/ldgabbay/foostache). This package provides a command-line utility and modules for Python 2 and 3. ## Example A **template** is marked-up unicode that might look like this: ```text {{:iterate my_array 1::2}}{{. %5.2f}}{{:before}}[{{:between}}, {{:after}}]{{:end}} ``` The template can be rendered given a **context**. The context is usually specified with a JSON value, such as: ```json { "my_array": [2.6, 4, 18, 3.51, 42, 96.8] } ``` When the above context is applied to the above template, the following output is generated: ```text [ 4.00, 3.51, 96.80] ``` ## Command-Line ```text foostache template-file context-json-file ``` ```text python -m foostache template-file context-json-file ``` ## Module ```python import foostache template = foostache.Template("{{:iterate .}}{{.}}{{:end}}") assert template.render(["a", "b", "c"]) == "abc" ```


نیازمندی

مقدار نام
~=0.17.1 future
~=1.35 ujson
~=4.7.2 antlr4-python2-runtime


زبان مورد نیاز

مقدار نام
>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4 Python


نحوه نصب


نصب پکیج whl foostache-1.2.1:

    pip install foostache-1.2.1.whl


نصب پکیج tar.gz foostache-1.2.1:

    pip install foostache-1.2.1.tar.gz