You might want to give a shot with 'add_to_builtins':
http://blog.michaeltrier.com/2007/8/7/common-template-tags

On Sep 13, 11:05 am, akonsu <[EMAIL PROTECTED]> wrote:
> hello,
>
> is there a way to make my custom tags and filters available to a
> template that i create from a string like this:
>
> template = Template(string)
> template.render(context)
>
> i know that i can use the "load" tag in the template, but suppose that
> the strings that i create templates from do not have the load tag and
> i have no way to change that. i can of course do
>
> template = Template('{% load mytags %}' + string)
>
> but is there a better way?
>
> thanks
> konstantin
--~--~---------~--~----~------------~-------~--~----~
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