Skip to main content

A smart template inclusion tag

Project description

Works like normal inclusion tag but it allows the wrapped function to specify which template to use, or to abort althogether and return.


def maybe_show_foo(context):
return None
return 'foo.html', context

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page