X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/ac6ebd8b38a46afb0b249574be71a276f95b6efa..46997a51ed0ceb16ddbac712fbcb552a86cdc9e2:/philo/templatetags/containers.py diff --git a/philo/templatetags/containers.py b/philo/templatetags/containers.py index 1e2ff80..722f2d8 100644 --- a/philo/templatetags/containers.py +++ b/philo/templatetags/containers.py @@ -1,3 +1,19 @@ +""" +The container template tags are automatically included as builtins if :mod:`philo` is an installed app. + +.. templatetag:: container + +container +--------- + +If a template using this tag is used to render a :class:`.Page`, that :class:`.Page` will have associated content which can be set in the admin interface. If a content type is referenced, then a :class:`.ContentReference` object will be created; otherwise, a :class:`.Contentlet` object will be created. + +Usage:: + + {% container [[references .] as ] %} + +""" + from django import template from django.conf import settings from django.contrib.contenttypes.models import ContentType @@ -61,9 +77,7 @@ class ContainerNode(template.Node): def do_container(parser, token): """ - Usage:: - - {% container [[references .] as ] %} + {% container [[references .] as ] %} """ params = token.split_contents()