A standardized interface to register custom pipes as templatetags for django.
License
melinath/django-pipetter
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Pipetter is a module designed to provide uniform registration and processing of inclusion tags for information pulled from other sources, such as websites. By design, it defines very little about the nature of the pipette, requiring only that it supply the following method: obj.get_context :: returns variables to be added to the context of the included template. A pipette may optionally supply: obj.tag_name :: the name of the template tag. Defaults to obj.__module__.rsplit('.')[-1]. obj.template :: the name of the template to be used with the pipette. Defaults to "pipettes/<tag_name>.html" obj.cache_for :: how long to cache the context results for (minutes). Default: 5.
About
A standardized interface to register custom pipes as templatetags for django.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published