Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

django-ttag

TTag is a template tag constructor library for Django created for the purpose of making writing template tags easier.

The tag syntax is modelled on Django’s friendly syntaxes for models and forms. Here is a full example tag:

class Welcome(ttag.Tag)
    user = ttag.Arg(positional=True)
    fallback = ttag.Arg(default='Hi!')

    def output(self, data)
        name = data['user'].get_full_name()
        if name:
            return 'Hi, %s!' % name
        return data['fallback']

This would produce a tag named welcome which can be used like this:

{% welcome current_user fallback "Hello, anonymous." %}

More comprehensive usage and reference documentation can be found in the docs directory, or at http://packages.python.org/django-ttag/.

Metadata

Release files for django-ttag 1.0-alpha-4

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-ttag 1.0-alpha-4
File Size Uploaded Provenance
django-ttag-1.0-alpha-4.tar.gz 214.0 kB Without provenance Details

Release files / django-ttag-1.0-alpha-4.tar.gz

Download URL django-ttag-1.0-alpha-4.tar.gz
Size 214.0 kB
Tags Source
SHA-256 checksum
How to use checksums
97854f7a195973c55d1c93d4fa14c1d9fda5ebc368f64536184c1fc68c8087f2
BLAKE2b-256 checksum
How to use checksums
33aac93b7a31ddfae771f0c4a03459f0295748f1c540eb17af1775f7d5e7df3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-ttag 1.0-alpha-4

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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