On May 31, 2008, at 00:36 , Berco Beute wrote:

>
> Unfortunately that doesn't work. This works:
>
> {{ include dir|concat:"/tag.html" }}
>
> But not this:
>
> {% include dir|concat:"/tag.html" %}
>
> Thanks, but I'm still searching for a solution...

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