On 15 juin, 20:48, Tim Shaffer <timshaf...@me.com> wrote: > Another option, if your use-case doesn't require anything terribly complex, > is to just include another template and pass your variables to it: > > {% include "link_to.html" with url="google.com" text="check out google" %} > > In link_to.html: > > <a href="{{ url }}">{{ text }}</a>
Quite a lot of processing for something as simple as link... -- 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.