Skip to content

melinath/django-pipetter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

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

No packages published

Languages