On 27 déc, 19:33, Nuño Iglesias <nigl...@gmail.com> wrote:
> > basically ....it does not evaluate de content of "{{audio_file}}".

The {{ varname }} syntax is only eval'd by the template engine itself,
not by templatetags.
>
> If I do this:
>         {%if song %}
>                 {% load audioplayer  %}
>                 {% audioplayer file=song  %}
>         {%endif%}
>
> it works...
> But i'm not sure why Django looks for the variable.

Because the 'audioplayer' templatetag do call back on the template API
to try and resolve this variable.

> I can't locate it in the documentation.

http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#passing-template-variables-to-the-tag



> Thanks  
>
> Nuño

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to