On 7 Lis, 03:28, Tom von Schwerdtner <tomv...@gmail.com> wrote: > > Is that the intended behavior? It seems a bit wonky... >
http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#writing-the-compilation-function """ if not (format_string[0] == format_string[-1] and format_string[0] in ('"', "'")): raise template.TemplateSyntaxError, "%r tag's argument should be in quotes" % tag_name """ """ The token.split_contents() method separates the arguments on spaces while keeping quoted strings together. The more straightforward token.contents.split() wouldn't be as robust, as it would naively split on all spaces, including those within quoted strings. It's a good idea to always use token.split_contents(). """ So - yes, it is intended -- Tomasz Zieliński http://pyconsultant.eu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---