On Aug 31, 1:38 pm, Julián C. Pérez <jcp...@gmail.com> wrote:
> Hi
> I use Django 1.0 and I define a template function like...
> ---
> from django import template
> register = template.Library()
> def doSomething(param1, param2):
>    # Do something like...
>    return str(param1)+'<br/>'+str(param2)
> register.simple_tag(doSomething)
> ---
> to use that in template system, assuming a and b are in context...
> ---
> {% doSomething a b %}
> <!--
> This call outputs:
> valueOfA
> valueOfB
> -->
> ---
> Hope it helps you out
> ;)


yeah just found that after i posted this msg... thanks for your quick
response.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to