On 27 déc, 19:33, Nuño Iglesias <[email protected]> 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 [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-users?hl=en.