معرفی شرکت ها


django-textchunks-0.1.1


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Keyed blocks of text or html content for use in your Django templates
ویژگی مقدار
سیستم عامل -
نام فایل django-textchunks-0.1.1
نام django-textchunks
نسخه کتابخانه 0.1.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده aleosd
ایمیل نویسنده osdalex@gmail.com
آدرس صفحه اصلی https://github.com/aleosd/django-textchukns
آدرس اینترنتی https://pypi.org/project/django-textchunks/
مجوز -
Django Text Chunks ================== Insert blocks of text anywhere in in your template Installation ============= Install package using pip :: $ pip install django-textchunks Basic usage =========== Add the ``textchunks`` application to ``INSTALLED_APPS`` in your settings file (usually ``settings.py``) :: INSTALLED_APPS = ( ... 'textchunks', ... ) Sync database with ``./manage.py migrate``. After that, add textchunks using django admin interface and use them on your templates: .. code-block:: html {% load textchunks %} <html> <head> <title>Test</title> {% textchunk "google_analytics" %} </head> <body> <h1>Blah blah blah</h1> <div id="sidebar"> ... </div> <div id="left"> {% textchunk "home_page_left" %} </div> <div id="right"> {% textchunk "home_page_right" %} </div> </body> </html> Advanced usage ============== There are two template tags available: ``textchunk`` and ``textchunk_plain``. Text displayed with ``textchunk`` is not escaped, any html and javascript is rendered or executed. ``textchunk_plain`` tag uses ``from django.utils.html.escape`` to escape it's content, so it's safe to render user-entered text. ``textchunk`` tag uses django ``Template`` object to render data and has access to template context. So, text :: <span>{{ request.user.username }}</span> for user with username as `agentsmith` will be rendered as :: <span>agentsmith</span>


نحوه نصب


نصب پکیج whl django-textchunks-0.1.1:

    pip install django-textchunks-0.1.1.whl


نصب پکیج tar.gz django-textchunks-0.1.1:

    pip install django-textchunks-0.1.1.tar.gz