On Sep 11, 10:36 pm, Mikhail Korobov <[email protected]> wrote:
> I gave up defining this template tag with existing template tag libraries:
>
> {% easy_map <address> [<width> <height>] [<zoom>] [using <template_name>] %}
>
> Can positional arguments be optional? Will it be possible to express this
> syntax?

>From the department of stupid ideas: Would it be possible to support
the above syntax? I mean, the MyTag definition would be just:

class MyTag(Tag):
    syntax = "mytag <address> [<width> <height>] [<zoom>] [using
<template_name>]"

That would be my preferred solution.

There is just the little problem of how to parse the syntax. I don't
know how to do that. If there is any support for this idea, I am
willing to check if this is possible.

 - Anssi

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to