X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/c9802c5cb6ad16a895cd5434d6f7695d1ae930f7..c79f6c48cae9411acf3f413b25d942df34f7719f:/philo/templatetags/embed.py diff --git a/philo/templatetags/embed.py b/philo/templatetags/embed.py index 39b29e0..9599240 100644 --- a/philo/templatetags/embed.py +++ b/philo/templatetags/embed.py @@ -1,3 +1,7 @@ +""" +The embed template tags are automatically included as builtins if :mod:`philo` is an installed app. + +""" from django import template from django.conf import settings from django.contrib.contenttypes.models import ContentType @@ -287,11 +291,23 @@ def parse_content_type(bit, tagname): return ct -def do_embed(parser, token): +@register.tag +def embed(parser, token): """ - The {% embed %} tag can be used in two ways: - {% embed . with