معرفی شرکت ها


Quart-Cmark-0.1.2


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Add commonmark processing filter to your Quart app.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل Quart-Cmark-0.1.2
نام Quart-Cmark
نسخه کتابخانه 0.1.2
نگهدارنده ['Doug Shawhan']
ایمیل نگهدارنده ['doug.shawhan@gmail.com']
نویسنده Doug Shawhan
ایمیل نویسنده doug.shawhan@gmail.com
آدرس صفحه اصلی https://gitlab.com/doug.shawhan/quart-cmark
آدرس اینترنتی https://pypi.org/project/Quart-Cmark/
مجوز Copyright 2019 Doug Shawhan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# quart-cmark Add [CommonMark](https://commonmark.org/) processing [filter](http://jinja.pocoo.org/docs/2.10/templates/#filters) to your `Quart` app, using [paka.cmark](https://github.com/kapyshin/paka.cmark) because why should I do any work? `paka.cmark` uses the [commonmark/cmark](https://github.com/commonmark/cmark) reference implementation, so it should render anything outlined in the [CommonMark Spec](https://spec.commonmark.org/) lickety-split. Source code may be found at [Gitlab](https://gitlab.com/doug.shawhan/quart-cmark). Docs at [readthedocs](https://quart-cmark.readthedocs.io). # Installation ```bash pip install Quart-Cmark ``` # Usage ## Script ```python from quart_cmark import Cmark cm = Cmark(app) ``` or, if you are using factory pattern: ```python from quart_cmark import Cmark cm = Cmark() cm.init_app(app) ``` Create routes in the usual way: ```python @app.route("/markdown-fest") async def markdown_fest(): mycm = u"Hello, *commonmark* block." return await render_template("markdown-fest.html", mycm=mycm) ``` ## Template ### Inline-style ```html <html> {{mycm|commonmark}} </html> ``` ### Block-style ```html <html> {% filter commonmark %} {{mycm}} {% endfilter %} </html> ``` ## Autoescape Jinja2's autoescape works when declared at init. See [tests](https://gitlab.com/doug.shawhan/quart-cmark/blob/master/tests/test_cmark.py) for examples. ## Tests `pytest`


نیازمندی

مقدار نام
- Quart
>=3 jinja2
>=2 markupsafe
>=2.3.0 paka.cmark


نحوه نصب


نصب پکیج whl Quart-Cmark-0.1.2:

    pip install Quart-Cmark-0.1.2.whl


نصب پکیج tar.gz Quart-Cmark-0.1.2:

    pip install Quart-Cmark-0.1.2.tar.gz