Skip to main content
Native Tags Documentation
=========================

:Authors:
Justin Quick <justquick@gmail.com>
:Version: 0.5

::

pip install django-native-tags==0.5.3

Django Native Tags is a way of making the creation of template tags stupidly simple.
Tags are "native" because there is a much closer relationship between the tag in the template and a Python function behind the scenes.
The app abstracts the work needed to parse out the templatetag syntax into a useable form for a Python function.
For example:

Define an arbitrary function in your templatetags::

def add(x, y):
return x + y
add.function = True

Use the function in your template::

{% add 1000 100 as num %}
{{ num|intcomma }}

Which outputs::

1,100

Other features of Native Tags:

* Keyword argument parsing
* Quoted strings parsed correctly
* Add templatetags to Django's builtins (no ``{% load %}`` required)
* Auto resolve of template variables
* Universal and per-tag caching
* Straightforward template tag unittesting
* Error tolerant by letting you specify a fallback return value

The real power of the module comes in the contrib add ons which has tons of tags for various uses including
comparisons, regex operations, math operations, and much more. By default it is a functional replacement to `James Bennett`_'s `django-template-utils`_ right out of the box

.. _django-template-utils: http://bitbucket.org/ubernostrum/django-template-utils/
.. _James Bennett: http://www.b-list.org/

For full documentation, checkout the `Sphinx doc`_

.. _fancy Sphinx doc: http://justquick.github.com/django-native-tags/

Email me with any questions/concerns/issues/hate mail:

justquick [@] the gmails .com

Metadata

Release files for django-native-tags 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-native-tags 0.5.3
File Size Uploaded Provenance
django-native-tags-0.5.3.tar.gz 24.6 kB Without provenance Details

Release files / django-native-tags-0.5.3.tar.gz

Download URL django-native-tags-0.5.3.tar.gz
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
989a612e3235e5fc13b7c1ed6ca5890bb09cc90f1d3d63605add03acf5ec5706
BLAKE2b-256 checksum
How to use checksums
e7e5f72db2c0b698314036e7c388f8f818ebf118b2ef29672280795702f849cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-native-tags 0.5.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page