I may have misunderstood this thread slightly but, should templatetags
follow the same structure as *args, **kwargs??
i.e.
*args
{% create_title "hello world" 800 800 %}
**kwargs
{% create_title title="helloworld" width=800 height=800 %}
mixture
{% create_title "helloworld" width=800 height=800 %}
Apologies if I have completely missed the point of this thread.
Cal
On Mon, Sep 12, 2011 at 10:39 AM, Jonas H. <[email protected]> wrote:
> On 09/12/2011 10:47 AM, lucky wrote:
>
>> Hello, Alex,
>>
>> I agree with Wim Feijen. The ability to implement a arbitrary syntax
>> for tag parameters is too abstract problem and this causes an increase
>> in the complexity of the solution. Tag delelopers are forced to define
>> a grammar and deal with lexing and parsing. End users must to learn
>> and remember a custom syntax for each of tags. [...]
>>
>>
>> We should not be afraid of the python-like grammar for tag
>> paramenters. There is not principal difference beetween custom {%
>> mytag src limit 1 offset 10 %} and pythonic {% mytag src limit=1
>> offset=10 %}. The restrict syntax makes the solution simpler.
>>
>
> +1
>
> Template tags should be forced to have a simple syntax. Users should not
> have to look up the syntax each time.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To post to this group, send email to
> django-developers@**googlegroups.com<[email protected]>
> .
> To unsubscribe from this group, send email to
> django-developers+unsubscribe@**googlegroups.com<django-developers%[email protected]>
> .
> For more options, visit this group at http://groups.google.com/**
> group/django-developers?hl=en<http://groups.google.com/group/django-developers?hl=en>
> .
>
>
--
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.