That's seems to be working, the only thing I've left to do is passing
the complete context from the template to the simple_tag, else the
simple_tag won't be able to render the template. How is that normally
done in Python?

2B

On May 31, 7:32 am, Alex Morega <[EMAIL PROTECTED]> wrote:
> Create your own tag - not an inclusion tag, but a simpletag. Something  
> like this:
>
> from django.template.loader import render_to_string
> from django import template
> register = template.Library()
>
> @register.simple_tag
> def my_include(directory, filename):
>      return render_to_string(directory + filename)
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to